@@ -2432,7 +2432,7 @@ impl<SP: Deref> InitialRemoteCommitmentReceiver<SP> for FundedChannel<SP> where
2432
2432
}
2433
2433
}
2434
2434
2435
- /// A temporaty internal struct, used to return something from FundedChannel
2435
+ /// A temporary internal struct, used to return something from FundedChannel
2436
2436
/// that implements [`FundingTxConstructorV2`], but only when it has the parts for it.
2437
2437
#[cfg(splicing)]
2438
2438
struct FundedChannelRefundingWrapper<'a, SP: Deref> where SP::Target: SignerProvider {
@@ -9088,8 +9088,14 @@ impl<SP: Deref> FundedChannel<SP> where
9088
9088
)?;
9089
9089
9090
9090
let post_value_to_self_msat = self.funding().value_to_self_msat.saturating_add(our_funding_satoshis);
9091
+
9091
9092
let mut post_channel_transaction_parameters = self.funding().channel_transaction_parameters.clone();
9092
9093
post_channel_transaction_parameters.channel_value_satoshis = post_channel_value;
9094
+ // Update the splicing 'tweak', this will rotate the keys in the signer
9095
+ let prev_funding_txid = self.funding.funding_transaction.as_ref()
9096
+ .map(|tx| tx.compute_txid());
9097
+ post_channel_transaction_parameters.splice_parent_funding_txid = prev_funding_txid;
9098
+
9093
9099
let pending_funding = FundingScope {
9094
9100
channel_transaction_parameters: post_channel_transaction_parameters,
9095
9101
value_to_self_msat: post_value_to_self_msat,
@@ -9198,8 +9204,14 @@ impl<SP: Deref> FundedChannel<SP> where
9198
9204
)?;
9199
9205
9200
9206
let post_value_to_self_msat = self.funding().value_to_self_msat.saturating_add(our_funding_satoshis);
9207
+
9201
9208
let mut post_channel_transaction_parameters = self.funding().channel_transaction_parameters.clone();
9202
9209
post_channel_transaction_parameters.channel_value_satoshis = post_channel_value;
9210
+ // Update the splicing 'tweak', this will rotate the keys in the signer
9211
+ let prev_funding_txid = self.funding.funding_transaction.as_ref()
9212
+ .map(|tx| tx.compute_txid());
9213
+ post_channel_transaction_parameters.splice_parent_funding_txid = prev_funding_txid;
9214
+
9203
9215
let pending_funding = FundingScope {
9204
9216
channel_transaction_parameters: post_channel_transaction_parameters,
9205
9217
value_to_self_msat: post_value_to_self_msat,
0 commit comments