Skip to main content

MAX_OUTGOING_CONTRACT_TIMELOCK_DELTA

Constant MAX_OUTGOING_CONTRACT_TIMELOCK_DELTA 

Source
pub(crate) const MAX_OUTGOING_CONTRACT_TIMELOCK_DELTA: u64 = 1440;
Expand description

Largest number of blocks an outgoing contract’s timelock may lie ahead of the current block count, matching the EXPIRATION_DELTA_LIMIT of the fedimint-lnv2-client. The payee picks part of the delta through the invoice’s min_final_cltv_expiry_delta, so without a bound they could push the payer’s refund out arbitrarily far or overflow the timelock.