Skip to content

Commit 77a7e16

Browse files
committed
f wrap condition
1 parent cd8ae56 commit 77a7e16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6906,7 +6906,7 @@ impl<SP: Deref> FundedChannel<SP> where
69066906
}
69076907

69086908
if msg.next_local_commitment_number >= INITIAL_COMMITMENT_NUMBER || msg.next_remote_commitment_number >= INITIAL_COMMITMENT_NUMBER ||
6909-
msg.next_local_commitment_number == 0 && msg.next_funding_txid.is_none() {
6909+
(msg.next_local_commitment_number == 0 && msg.next_funding_txid.is_none()) {
69106910
// Note: This also covers the following case in the V2 channel establishment specification:
69116911
// if `next_funding_txid` is not set, and `next_commitment_number` is zero:
69126912
// MUST immediately fail the channel and broadcast any relevant latest commitment transaction.

0 commit comments

Comments
 (0)