Constant MAX_KEYS_PER_STEP

Source
pub const MAX_KEYS_PER_STEP: u32 = 10_000;
Expand description

Hard cap on the number of storage keys touched in a single step.

The weight meter is the real limit - every key costs at least a read and a write, so the meter always binds first. This is only a guard against an unbounded loop should that ever stop being true.