Skip to content

Commit fd7d12b

Browse files
committed
f - add comment with spec requirement
1 parent 1200482 commit fd7d12b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10576,6 +10576,12 @@ where
1057610576
let next_local_commitment_number =
1057710577
INITIAL_COMMITMENT_NUMBER - self.holder_commitment_point.transaction_number();
1057810578

10579+
// The sending node:
10580+
// - if it has sent `commitment_signed` for an interactive transaction construction but
10581+
// it has not received `tx_signatures`:
10582+
// - MUST set `next_funding_txid` to the txid of that interactive transaction.
10583+
// - if it has not received `commitment_signed` for that interactive transaction:
10584+
// - MUST set `next_commitment_number` to the commitment number of the `commitment_signed` it sent.
1057910585
if let Some(session) = &self.interactive_tx_signing_session {
1058010586
if !self.context.channel_state.is_their_tx_signatures_sent()
1058110587
&& !session.has_received_commitment_signed()

0 commit comments

Comments
 (0)