Skip to content

Commit 08065aa

Browse files
committed
WIP: Address a comment?
1 parent 49ba3f7 commit 08065aa

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

lightning/src/ln/channel.rs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5611,10 +5611,19 @@ where
56115611
SP::Target: SignerProvider,
56125612
L::Target: Logger,
56135613
{
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+
56145623
let commitment_data = self.build_commitment_transaction(
56155624
funding,
5616-
self.cur_counterparty_commitment_transaction_number,
5617-
&self.counterparty_cur_commitment_point.unwrap(),
5625+
commitment_number,
5626+
&commitment_point,
56185627
false,
56195628
false,
56205629
logger,

0 commit comments

Comments
 (0)