Constant monero_serai::DEFAULT_LOCK_WINDOW

source ยท
pub const DEFAULT_LOCK_WINDOW: usize = 10;
Expand description

The minimum amount of blocks an output is locked for.

If Monero suffered a re-organization, any transactions which selected decoys belonging to recent blocks would become invalidated. Accordingly, transactions must use decoys which are presumed to not be invalidated in the future. If wallets only selected n-block-old outputs as decoys, then any ring member within the past n blocks would have to be the real spend. Preventing this at the consensus layer ensures privacy and integrity.