Skip to content

Commit 67f9f01

Browse files
committed
Slightly clarify comment on safety of only processing HTLCs once
1 parent a1f7cbb commit 67f9f01

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3032,10 +3032,10 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
30323032
if let Some(new_outputs) = new_outputs_option {
30333033
watch_outputs.push(new_outputs);
30343034
}
3035-
// Since there may be multiple HTLCs (all from the same commitment) being
3036-
// 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.
3035+
// Since there may be multiple HTLCs for this channel (all spending the
3036+
// same commitment tx) being claimed by the counterparty within the same
3037+
// transaction, and `check_spend_counterparty_htlc` already checks all the
3038+
// ones relevant to this channel, we can safely break from our loop.
30393039
break;
30403040
}
30413041
}

0 commit comments

Comments
 (0)