From 0282b0d963d2420a82b53f707d632240bcb40c60 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sat, 11 Jan 2025 17:33:15 +0000 Subject: [PATCH] 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. --- lightning/src/util/sweep.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/lightning/src/util/sweep.rs b/lightning/src/util/sweep.rs index 49c293054c0..b61306194df 100644 --- a/lightning/src/util/sweep.rs +++ b/lightning/src/util/sweep.rs @@ -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,