mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-24 23:08:36 +01:00
Slightly clarify comment on safety of only processing HTLCs once
This commit is contained in:
parent
a1f7cbb572
commit
67f9f01ac9
1 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue