Skip to content

Commit 4686459

Browse files
committed
f Mention confirming an unbroadcasted tx indicates a bug
1 parent c18a7a8 commit 4686459

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lightning/src/util/sweep.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,8 @@ impl OutputSpendStatus {
145145
match self {
146146
Self::PendingInitialBroadcast => {
147147
// Generally we can't see any of our transactions confirmed if they haven't been
148-
// broadcasted yet. Any transactions of the counterparty may confirm on-chain, but
149-
// we hold the state lock after creating the initial entry until we tried
150-
// broadcasting, so this should never be reachable via `transactions_confirmed`.
151-
debug_assert!(false, "We should never confirm when we haven't broadcasted.");
148+
// broadcasted yet, so this should never be reachable via `transactions_confirmed`.
149+
debug_assert!(false, "We should never confirm when we haven't broadcasted. This a bug and should never happen, please report.");
152150
*self = Self::PendingThresholdConfirmations {
153151
first_broadcast_hash: confirmation_hash,
154152
latest_broadcast_height: confirmation_height,

0 commit comments

Comments
 (0)