Skip to content

Commit 1047dcd

Browse files
committed
f - add comment with spec requirement
1 parent feffea4 commit 1047dcd

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
@@ -10145,6 +10145,12 @@ where
1014510145
let next_local_commitment_number =
1014610146
INITIAL_COMMITMENT_NUMBER - self.holder_commitment_point.transaction_number();
1014710147

10148+
// The sending node:
10149+
// - if it has sent `commitment_signed` for an interactive transaction construction but
10150+
// it has not received `tx_signatures`:
10151+
// - MUST set `next_funding_txid` to the txid of that interactive transaction.
10152+
// - if it has not received `commitment_signed` for that interactive transaction:
10153+
// - MUST set `next_commitment_number` to the commitment number of the `commitment_signed` it sent.
1014810154
if let Some(session) = &self.interactive_tx_signing_session {
1014910155
if !self.context.channel_state.is_their_tx_signatures_sent()
1015010156
&& !session.has_received_commitment_signed()

0 commit comments

Comments
 (0)