X-Git-Url: http://git.bitcoin.ninja/index.cgi?p=rust-lightning;a=blobdiff_plain;f=lightning%2Fsrc%2Fln%2Fchannel.rs;h=e539490951d9b2e9cd780c2189c1e76775ae7586;hp=65fb9919760e94e7fd65e07fb31b02dcc2cb72e9;hb=28794931b72d7de3f79a554321fb3892c66f9e80;hpb=741cffc04ca6ac638f858c8d16065a26e26a20d5 diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index 65fb9919..e5394909 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -1708,6 +1708,7 @@ impl Channel { let mut removed_outbound_total_msat = 0; for ref htlc in self.pending_outbound_htlcs.iter() { if let OutboundHTLCState::AwaitingRemoteRevokeToRemove(None) = htlc.state { +debug_assert!(false, "This should be triggerable, and we should add a test case that does so!"); removed_outbound_total_msat += htlc.amount_msat; } else if let OutboundHTLCState::AwaitingRemovedRemoteRevoke(None) = htlc.state { removed_outbound_total_msat += htlc.amount_msat;