From: Matt Corallo Date: Tue, 5 Mar 2019 22:29:12 +0000 (-0500) Subject: Additional asserts to include in fuzztesting (though may get hit?) X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=28794931b72d7de3f79a554321fb3892c66f9e80;p=rust-lightning Additional asserts to include in fuzztesting (though may get hit?) --- diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index 65fb99197..e53949095 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;