From: Matt Corallo Date: Wed, 7 Dec 2022 23:17:31 +0000 (+0000) Subject: Slightly clarify comment on safety of only processing HTLCs once X-Git-Tag: v0.0.113~7^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=67f9f01ac921bb9228300a9887d52984b2d03c66;p=rust-lightning Slightly clarify comment on safety of only processing HTLCs once --- diff --git a/lightning/src/chain/channelmonitor.rs b/lightning/src/chain/channelmonitor.rs index 5c1e102ae..a41d85331 100644 --- a/lightning/src/chain/channelmonitor.rs +++ b/lightning/src/chain/channelmonitor.rs @@ -3032,10 +3032,10 @@ impl ChannelMonitorImpl { if let Some(new_outputs) = new_outputs_option { watch_outputs.push(new_outputs); } - // Since there may be multiple HTLCs (all from the same commitment) being - // claimed by the counterparty within the same transaction, and - // `check_spend_counterparty_htlc` already checks for all of them, we can - // safely break from our loop. + // Since there may be multiple HTLCs for this channel (all spending the + // same commitment tx) being claimed by the counterparty within the same + // transaction, and `check_spend_counterparty_htlc` already checks all the + // ones relevant to this channel, we can safely break from our loop. break; } }