Skip to content

Commit c9ac4ad

Browse files
committed
Slightly clarify comment on safety of only processing HTLCs once
1 parent 1e63e05 commit c9ac4ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3034,8 +3034,8 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
30343034
}
30353035
// Since there may be multiple HTLCs (all from the same commitment) being
30363036
// claimed by the counterparty within the same transaction, and
3037-
// `check_spend_counterparty_htlc` already checks for all of them, we can
3038-
// safely break from our loop.
3037+
// `check_spend_counterparty_htlc` already checks all the ones relevant to
3038+
// this channel, we can safely break from our loop.
30393039
break;
30403040
}
30413041
}

0 commit comments

Comments
 (0)