Constant STATIC_PAYMENT_KEY_COUNT

Source
pub const STATIC_PAYMENT_KEY_COUNT: u16 = 1000;
Expand description

If a KeysManager is built with KeysManager::new with v2_remote_key_derivation set (and for all channels after they’ve been spliced), the script which we receive funds to on-chain when our counterparty force-closes a channel is one of this many possible derivation paths.

Keeping this limited allows for scanning the chain to find lost funds if our state is destroyed, while this being more than a handful provides some privacy by not constantly reusing the same scripts on-chain across channels.