For a hold invoice, does anyone know the maximum time that can elapse between payment and settlement?
Discussion
It depends on the CLTV (CHECKLOCKTIMEVERIFY) value of the routed HTLC.
LND channels take 2016 blocks (2 weeks) max by default, but it needs to be lower with the cltv_delta value with every hop where it is routed.
Other implementations have the max value lower at 144.
@npub1p2psats79rypr8lpnl9t5qdekfp700x660qsgw284xvq4s09lqrqqk3m82sets it to 24h (144 blocks) for maximum compatibility.
#[4] sets it to 24h (144 blocks) for maximum compatibility.