Skip to content

Commit 172c1b3

Browse files
committed
f - Update user feedback message in debug assertions
1 parent 53fc8ab commit 172c1b3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2254,11 +2254,13 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
22542254
debug_assert!(
22552255
unmatured_htlcs.iter().find(|&htlc| htlc == &htlc_update.0).is_none(),
22562256
"An unmature HTLC transaction conflicts with a maturing one; failed to call
2257-
block_disconnected for a block containing the conflicting transaction.");
2257+
either transaction_unconfirmed for the conflicting transaction or
2258+
block_disconnected for a block containing it.");
22582259
debug_assert!(
22592260
matured_htlcs.iter().find(|&htlc| htlc == &htlc_update.0).is_none(),
22602261
"A matured HTLC transaction conflicts with a maturing one; failed to call
2261-
block_disconnected for a block containing the conflicting transaction.");
2262+
either transaction_unconfirmed for the conflicting transaction or
2263+
block_disconnected for a block containing it.");
22622264
#[cfg(debug_assertions)]
22632265
matured_htlcs.push(htlc_update.0.clone());
22642266

0 commit comments

Comments
 (0)