]> git.bitcoin.ninja Git - rust-lightning/blobdiff - src/ln/channel.rs
Merge pull request #266 from TheBlueMatt/2018-12-closing_signed-3-leg-commitment
[rust-lightning] / src / ln / channel.rs
index c2ec53fb353d8fad52d1e6d8d5074ed361546752..cbcec942d80661dafb83e13f98826dfc2cceb2d1 100644 (file)
@@ -2410,8 +2410,7 @@ impl Channel {
        fn maybe_propose_first_closing_signed(&mut self, fee_estimator: &FeeEstimator) -> Option<msgs::ClosingSigned> {
                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;
                }