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
`CLTV_CLAIM_BUFFER`'s definition stated "this is an upper bound on
how many blocks we think it can take us to get a transaction
confirmed". This was mostly okay for pre-anchor channels, where we
broadcasted HTLC claim transactions at the same time as the
commitment transactions themselves, but for anchor channels we can
no longer do that - HTLC transactions are always CSV 1'd.
Further, when we do go to broadcast HTLC transactions, we start
the feerate estimate for them back at the users' feerate estimator,
rather than whatever feerate we ended up using to get the
commitment transaction confirmed. While we should maybe consider
changing that, for now that means that we really need to run the
whole "get a transaction confirmed" process from start to finish
*twice* in order to claim an HTLC.
Thus, `CLTV_CLAIM_BUFFER` is here redefined to be two times "the
upper bound on how many blocks we think it can take for us to get
a transaction confirmed", with a new `MAX_BLOCKS_FOR_CONF` constant
defining the expected max blocks.
0 commit comments