pub const MAX_GAP_SCAN_RANGE: u64 = 100;
Maximum number of nonces to scan when detecting gaps between on-chain and local counter. Gaps beyond this range are logged for operator investigation rather than automated recovery.