We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6bde10c commit de65412Copy full SHA for de65412
lightning/src/ln/channel.rs
@@ -8429,6 +8429,9 @@ where
8429
}
8430
let funding_signed = if self.context.signer_pending_funding && !self.funding.is_outbound() {
8431
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.
8435
self.context.counterparty_next_commitment_transaction_number + 1,
8436
&self.context.counterparty_next_commitment_point.unwrap(), false, false, logger);
8437
let counterparty_initial_commitment_tx = commitment_data.tx;
0 commit comments