mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-01-18 21:34:48 +01:00
Drop spurious debug assertion in sweeping logic
With the `Confirm` interface, transaction confirmations can come in at any time, so asserting that a confirmation is more recent than the last time we broadcasted a transaction can lead to spurious assertion failures.
This commit is contained in:
parent
463e432e92
commit
0282b0d963
@ -173,7 +173,6 @@ impl OutputSpendStatus {
|
||||
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,
|
||||
|
Loading…
Reference in New Issue
Block a user