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 @@ -5607,10 +5607,19 @@ where
5607
5607
SP::Target: SignerProvider,
5608
5608
L::Target: Logger,
5609
5609
{
5610
+ let mut commitment_number = self.cur_counterparty_commitment_transaction_number;
5611
+ let mut commitment_point = self.counterparty_cur_commitment_point.unwrap();
5612
+
5613
+ // Use the previous commitment number and point when splicing since they shouldn't change.
5614
+ if commitment_number != INITIAL_COMMITMENT_NUMBER {
5615
+ commitment_number += 1;
5616
+ commitment_point = self.counterparty_prev_commitment_point.unwrap();
5617
+ }
5618
+
5610
5619
let commitment_data = self.build_commitment_transaction(
5611
5620
funding,
5612
- self.cur_counterparty_commitment_transaction_number ,
5613
- &self.counterparty_cur_commitment_point.unwrap() ,
5621
+ commitment_number ,
5622
+ &commitment_point ,
5614
5623
false,
5615
5624
false,
5616
5625
logger,
You can’t perform that action at this time.
0 commit comments