File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -5611,10 +5611,19 @@ where
5611
5611
SP::Target: SignerProvider,
5612
5612
L::Target: Logger,
5613
5613
{
5614
+ let mut commitment_number = self.cur_counterparty_commitment_transaction_number;
5615
+ let mut commitment_point = self.counterparty_cur_commitment_point.unwrap();
5616
+
5617
+ // Use the previous commitment number and point when splicing since they shouldn't change.
5618
+ if commitment_number != INITIAL_COMMITMENT_NUMBER {
5619
+ commitment_number += 1;
5620
+ commitment_point = self.counterparty_prev_commitment_point.unwrap();
5621
+ }
5622
+
5614
5623
let commitment_data = self.build_commitment_transaction(
5615
5624
funding,
5616
- self.cur_counterparty_commitment_transaction_number ,
5617
- &self.counterparty_cur_commitment_point.unwrap() ,
5625
+ commitment_number ,
5626
+ &commitment_point ,
5618
5627
false,
5619
5628
false,
5620
5629
logger,
You can’t perform that action at this time.
0 commit comments