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:
Matt Corallo 2025-01-11 17:33:15 +00:00
parent 463e432e92
commit 0282b0d963

View File

@ -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,