Skip to content

Commit 0282b0d

Browse files
committed
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.
1 parent 463e432 commit 0282b0d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lightning/src/util/sweep.rs

-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ impl OutputSpendStatus {
173173
latest_broadcast_height,
174174
..
175175
} => {
176-
debug_assert!(confirmation_height >= *latest_broadcast_height);
177176
*self = Self::PendingThresholdConfirmations {
178177
first_broadcast_hash: *first_broadcast_hash,
179178
latest_broadcast_height: *latest_broadcast_height,

0 commit comments

Comments
 (0)