Skip to content

Commit 68f715c

Browse files
committed
f Mention confirming an unbroadcasted tx indicates a bug
1 parent 8fbe694 commit 68f715c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/util/sweep.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl OutputSpendStatus {
148148
// broadcasted yet. Any transactions of the counterparty may confirm on-chain, but
149149
// we hold the state lock after creating the initial entry until we tried
150150
// broadcasting, so this should never be reachable via `transactions_confirmed`.
151-
debug_assert!(false, "We should never confirm when we haven't broadcasted.");
151+
debug_assert!(false, "We should never confirm when we haven't broadcasted. This a bug and should never happen, please report.");
152152
*self = Self::PendingThresholdConfirmations {
153153
first_broadcast_hash: confirmation_hash,
154154
latest_broadcast_height: confirmation_height,

0 commit comments

Comments
 (0)