| Self::PendingFirstConfirmation{ |
| first_broadcast_hash, |
| latest_broadcast_height, |
| .. |
| } => { |
| debug_assert!(confirmation_height >= *latest_broadcast_height); |
| *self = Self::PendingThresholdConfirmations{ |
| first_broadcast_hash:*first_broadcast_hash, |
| latest_broadcast_height:*latest_broadcast_height, |
| latest_spending_tx, |
| confirmation_height, |
| confirmation_hash, |
| }; |
| }, |
[rust-lightning/lightning/src/util/sweep.rs:179:6] "ERROR: confirmation_height < latest_broadcast_height" = "ERROR: confirmation_height < latest_broadcast_height"
[rust-lightning/lightning/src/util/sweep.rs:180:6] confirmation_height = 57500
[rust-lightning/lightning/src/util/sweep.rs:180:6] &*latest_broadcast_height = 57501
This debug assertion frequently triggers on both regtest and testnet. As it's possible for a new tx broadcast to be attempted before we receive the confirmation notification, would it be better to remove this debug assertion?
rust-lightning/lightning/src/util/sweep.rs
Lines 171 to 184 in a688f1c
This debug assertion frequently triggers on both regtest and testnet. As it's possible for a new tx broadcast to be attempted before we receive the confirmation notification, would it be better to remove this debug assertion?