X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=src%2Fln%2Fchannelmanager.rs;h=a957a96df73be073d6b4e9fd32aabdd8f80b2b74;hb=2322c2365c0bb91ce7440b9971a0bc43f1bd4dc8;hp=2b22cbd89d0ec060d95f9d1a15793e2c733f607a;hpb=c3991602a589b2c9fa76faff49885544cba048b3;p=rust-lightning diff --git a/src/ln/channelmanager.rs b/src/ln/channelmanager.rs index 2b22cbd8..a957a96d 100644 --- a/src/ln/channelmanager.rs +++ b/src/ln/channelmanager.rs @@ -494,7 +494,10 @@ macro_rules! try_chan_entry { } } } - let mut shutdown_res = chan.force_shutdown(); // We drop closing transactions as they are toxic datas and MUST NOT be broadcast + let mut shutdown_res = chan.force_shutdown(); + if shutdown_res.0.len() >= 1 { + log_error!($self, "You have a toxic local commitment transaction {} avaible in channel monitor, read comment in ChannelMonitor::get_latest_local_commitment_txn to be informed of manual action to take", shutdown_res.0[0].txid()); + } shutdown_res.0.clear(); return Err(MsgHandleErrInternal::from_finish_shutdown(msg, channel_id, shutdown_res, $self.get_channel_update(&chan).ok())) }