@@ -1024,10 +1024,7 @@ class Channel(val nodeParams: NodeParams, val wallet: OnChainChannelFunder with
10241024 val parentCommitment = d.commitments.latest.commitment
10251025 val localFundingPubKey = nodeParams.channelKeyManager.fundingPublicKey(d.commitments.params.localParams.fundingKeyPath, parentCommitment.fundingTxIndex + 1 ).publicKey
10261026 val fundingScript = Funding .makeFundingPubKeyScript(localFundingPubKey, msg.fundingPubKey, d.commitments.latest.params.commitmentFormat)
1027- val sharedInput = d.commitments.latest.commitInput match {
1028- case _ : Transactions .InputInfo .TaprootInput => Musig2Input (parentCommitment)
1029- case _ => Multisig2of2Input (parentCommitment)
1030- }
1027+ val sharedInput = SharedFundingInput (parentCommitment)
10311028 LiquidityAds .validateRequest(nodeParams.privateKey, d.channelId, fundingScript, msg.feerate, isChannelCreation = false , msg.requestFunding_opt, nodeParams.liquidityAdsConfig.rates_opt, msg.useFeeCredit_opt) match {
10321029 case Left (t) =>
10331030 log.warning(" rejecting splice request with invalid liquidity ads: {}" , t.getMessage)
@@ -1085,10 +1082,7 @@ class Channel(val nodeParams: NodeParams, val wallet: OnChainChannelFunder with
10851082 case SpliceStatus .SpliceRequested (cmd, spliceInit) =>
10861083 log.info(" our peer accepted our splice request and will contribute {} to the funding transaction" , msg.fundingContribution)
10871084 val parentCommitment = d.commitments.latest.commitment
1088- val sharedInput = d.commitments.latest.commitInput match {
1089- case _ : Transactions .InputInfo .TaprootInput => Musig2Input (parentCommitment)
1090- case _ => Multisig2of2Input (parentCommitment)
1091- }
1085+ val sharedInput = SharedFundingInput (parentCommitment)
10921086 val fundingParams = InteractiveTxParams (
10931087 channelId = d.channelId,
10941088 isInitiator = true ,
@@ -1169,7 +1163,7 @@ class Channel(val nodeParams: NodeParams, val wallet: OnChainChannelFunder with
11691163 isInitiator = false ,
11701164 localContribution = fundingContribution,
11711165 remoteContribution = msg.fundingContribution,
1172- sharedInput_opt = Some (Multisig2of2Input (rbf.parentCommitment)),
1166+ sharedInput_opt = Some (SharedFundingInput (rbf.parentCommitment)),
11731167 remoteFundingPubKey = rbf.latestFundingTx.fundingParams.remoteFundingPubKey,
11741168 localOutputs = rbf.latestFundingTx.fundingParams.localOutputs,
11751169 lockTime = msg.lockTime,
@@ -1222,7 +1216,7 @@ class Channel(val nodeParams: NodeParams, val wallet: OnChainChannelFunder with
12221216 isInitiator = true ,
12231217 localContribution = txInitRbf.fundingContribution,
12241218 remoteContribution = msg.fundingContribution,
1225- sharedInput_opt = Some (Multisig2of2Input (rbf.parentCommitment)),
1219+ sharedInput_opt = Some (SharedFundingInput (rbf.parentCommitment)),
12261220 remoteFundingPubKey = rbf.latestFundingTx.fundingParams.remoteFundingPubKey,
12271221 localOutputs = rbf.latestFundingTx.fundingParams.localOutputs,
12281222 lockTime = txInitRbf.lockTime,
@@ -3258,7 +3252,7 @@ class Channel(val nodeParams: NodeParams, val wallet: OnChainChannelFunder with
32583252 val targetFeerate = nodeParams.onChainFeeConf.getFundingFeerate(nodeParams.currentFeeratesForFundingClosing)
32593253 val fundingContribution = InteractiveTxFunder .computeSpliceContribution(
32603254 isInitiator = true ,
3261- sharedInput = Multisig2of2Input (parentCommitment),
3255+ sharedInput = SharedFundingInput (parentCommitment),
32623256 spliceInAmount = cmd.additionalLocalFunding,
32633257 spliceOut = cmd.spliceOutputs,
32643258 targetFeerate = targetFeerate)
0 commit comments