Skip to main content

LNV2_HOLD_INVOICE_CLTV_EXPIRY

Constant LNV2_HOLD_INVOICE_CLTV_EXPIRY 

Source
const LNV2_HOLD_INVOICE_CLTV_EXPIRY: u64 = 144;
Expand description

Final CLTV delta of the HOLD invoices created for LNv2 receives. Left unset, LND would use its routing bitcoin.timelockdelta, which operators may lower to 24 (18 before v0.21), leaving only a few blocks between accepting a payment and LND cancelling it by itself invoices.holdexpirydelta blocks before expiry. LND rejects any HTLC expiring sooner than this many blocks after it arrives, so it bounds every accepted HTLC, not just honest payers.