]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Slightly clarify comment on safety of only processing HTLCs once 2022-12-1825-followups
authorMatt Corallo <git@bluematt.me>
Wed, 7 Dec 2022 23:17:31 +0000 (23:17 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 8 Dec 2022 00:39:31 +0000 (00:39 +0000)
lightning/src/chain/channelmonitor.rs

index 5c1e102aefc8e2cc44350acc052f99ffdab5e224..a41d853311ce924f388eaa5efbbb2ceb79489a64 100644 (file)
@@ -3032,10 +3032,10 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
                                                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;
                                        }
                                }