Skip to content

Commit

Permalink
Drop spurious debug assertion in sweeping logic
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TheBlueMatt committed Jan 11, 2025
1 parent 463e432 commit 0282b0d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lightning/src/util/sweep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0282b0d

Please sign in to comment.