You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Flatten Vec passed from channelmonitor to onchaintx block_connected
Instead of passing a Vec of Vecs drop them into one as we go in
ChannelMonitor, hopefully avoiding a bit of memory fragmentation
and improving readability.
// Don't claim a outpoint twice that would be bad for privacy and may uselessly lock a CPFP input for a while
495
-
ifletSome(_) = self.claimable_outpoints.get(&req.outpoint){log_trace!(self,"Bouncing off outpoint {}:{}, already registered its claiming request", req.outpoint.txid, req.outpoint.vout);}else{
496
-
log_trace!(self,"Test if outpoint can be aggregated with expiration {} against {}", req.absolute_timelock, height + CLTV_SHARED_CLAIM_BUFFER);
497
-
if req.absolute_timelock <= height + CLTV_SHARED_CLAIM_BUFFER || !req.aggregable{// Don't aggregate if outpoint absolute timelock is soon or marked as non-aggregable
// Don't claim a outpoint twice that would be bad for privacy and may uselessly lock a CPFP input for a while
494
+
ifletSome(_) = self.claimable_outpoints.get(&req.outpoint){log_trace!(self,"Bouncing off outpoint {}:{}, already registered its claiming request", req.outpoint.txid, req.outpoint.vout);}else{
495
+
log_trace!(self,"Test if outpoint can be aggregated with expiration {} against {}", req.absolute_timelock, height + CLTV_SHARED_CLAIM_BUFFER);
496
+
if req.absolute_timelock <= height + CLTV_SHARED_CLAIM_BUFFER || !req.aggregable{// Don't aggregate if outpoint absolute timelock is soon or marked as non-aggregable
0 commit comments