Skip to content

Commit 9de9288

Browse files
committed
Correct comment in onchaintx.rs
This comment was stale and referred to a previous implementation of #462, which changed before it was merged.
1 parent 4c3533d commit 9de9288

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/ln/onchaintx.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -487,8 +487,8 @@ impl OnchainTxHandler {
487487
let mut aggregated_soonest = ::std::u32::MAX;
488488
let mut spendable_outputs = Vec::new();
489489

490-
// Try to aggregate outputs if they're 1) belong to same parent tx, 2) their
491-
// timelock expiration isn't imminent (<= CLTV_SHARED_CLAIM_BUFFER).
490+
// Try to aggregate outputs if their timelock expiration isn't imminent (absolute_timelock
491+
// <= CLTV_SHARED_CLAIM_BUFFER) and they don't require an immediate nLockTime (aggregable).
492492
for req in claimable_outpoints {
493493
// Don't claim a outpoint twice that would be bad for privacy and may uselessly lock a CPFP input for a while
494494
if let Some(_) = self.claimable_outpoints.get(&req.outpoint) { log_trace!(self, "Bouncing off outpoint {}:{}, already registered its claiming request", req.outpoint.txid, req.outpoint.vout); } else {

0 commit comments

Comments
 (0)