const LND_ASSUMED_HOLD_EXPIRY_DELTA: u32 = 36;Expand description
How many blocks before its earliest HTLC expiry LND is assumed to cancel an
accepted HOLD invoice by itself. LND’s invoices.holdexpirydelta defaults
to 18 since v0.21 (16 + 2) and 12 before, has no upper bound, and cannot be
read cheaply before v0.21 (GetDebugInfo returns the whole log), so this
assumes twice the current default. The excess also absorbs blocks found
between the deadline check and settlement. It costs nothing for a payment
handled promptly, which still has about 108 blocks left under
LNV2_HOLD_INVOICE_CLTV_EXPIRY.