Skip to content

Commit

Permalink
f make comparison more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlueMatt committed Nov 16, 2021
1 parent 47a9a18 commit e3103d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning/src/ln/channel.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4254,7 +4254,7 @@ impl<Signer: Sign> Channel<Signer> {
return Err(ClosureReason::ProcessingError { err: err_reason });
}
} else if !self.is_outbound() && self.funding_tx_confirmed_in.is_none() &&
self.channel_creation_height + FUNDING_CONF_DEADLINE_BLOCKS <= height {
height >= self.channel_creation_height + FUNDING_CONF_DEADLINE_BLOCKS {
log_info!(logger, "Closing channel {} due to funding timeout", log_bytes!(self.channel_id));
// If funding_tx_confirmed_in is unset, the channel must not be active
assert!(non_shutdown_state <= ChannelState::ChannelFunded as u32);
Expand Down

0 comments on commit e3103d4

Please sign in to comment.