Skip to content

Commit de65412

Browse files
committed
Add clarifying comment to signer_maybe_unblocked
1 parent 6bde10c commit de65412

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8429,6 +8429,9 @@ where
84298429
}
84308430
let funding_signed = if self.context.signer_pending_funding && !self.funding.is_outbound() {
84318431
let commitment_data = self.context.build_commitment_transaction(&self.funding,
8432+
// The previous transaction number (i.e., when adding 1) is used because this field
8433+
// is advanced when handling funding_created, but the point is not advanced until
8434+
// handling channel_ready.
84328435
self.context.counterparty_next_commitment_transaction_number + 1,
84338436
&self.context.counterparty_next_commitment_point.unwrap(), false, false, logger);
84348437
let counterparty_initial_commitment_tx = commitment_data.tx;

0 commit comments

Comments
 (0)