Skip to content

Commit 1c8ea51

Browse files
fixup: check only claimable_outpoints when generating claims on block_confirmed
reminder for myself: squash with commit above
1 parent f423b16 commit 1c8ea51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5535,7 +5535,7 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitorImpl<Signer> {
55355535
debug_assert!(self.best_block.height >= conf_height);
55365536

55375537
// Only generate claims if we haven't already done so (e.g., in transactions_confirmed).
5538-
if claimable_outpoints.is_empty() && watch_outputs.is_empty() {
5538+
if claimable_outpoints.is_empty() {
55395539
let should_broadcast = self.should_broadcast_holder_commitment_txn(logger);
55405540
if let Some(payment_hash) = should_broadcast {
55415541
let reason = ClosureReason::HTLCsTimedOut { payment_hash: Some(payment_hash) };

0 commit comments

Comments
 (0)