BOOTSTRAP_BATCH_ENTRY_OVERHEAD

Constant BOOTSTRAP_BATCH_ENTRY_OVERHEAD 

Source
pub const BOOTSTRAP_BATCH_ENTRY_OVERHEAD: usize = 96;
Expand description

Rough in-memory cost of one (key, value) entry of a received bootstrap batch, on top of the bytes it carries: the BTreeMap node slot it occupies, the two Vec headers, and allocator rounding. Deliberately an over-estimate, so that the budget below is reached before the allocator actually is.