X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fln%2Fchannel.rs;h=f6177e9eb6b9cc2f1786c60247b1fcaecae8e5ac;hb=a2df43d525322812a6081e5ae0a666ce79efc20b;hp=296d97c164ea967839fa2f6ec93ab66f215f56fe;hpb=0d7156ffc1c9294278c02db373416d2122707580;p=rust-lightning diff --git a/src/ln/channel.rs b/src/ln/channel.rs index 296d97c1..f6177e9e 100644 --- a/src/ln/channel.rs +++ b/src/ln/channel.rs @@ -2406,8 +2406,7 @@ impl Channel { fn maybe_propose_first_closing_signed(&mut self, fee_estimator: &FeeEstimator) -> Option { if !self.channel_outbound || !self.pending_inbound_htlcs.is_empty() || !self.pending_outbound_htlcs.is_empty() || self.channel_state & (BOTH_SIDES_SHUTDOWN_MASK | ChannelState::AwaitingRemoteRevoke as u32) != BOTH_SIDES_SHUTDOWN_MASK || - self.last_sent_closing_fee.is_some() || - self.cur_remote_commitment_transaction_number != self.cur_local_commitment_transaction_number{ + self.last_sent_closing_fee.is_some() || self.pending_update_fee.is_some() { return None; }