Skip to main content

INITIAL_BODY_RESERVATION_STEP

Constant INITIAL_BODY_RESERVATION_STEP 

Source
const INITIAL_BODY_RESERVATION_STEP: usize = _; // 16_384usize
Expand description

Initial cap on reserved body capacity, before any body bytes have arrived.

body_len is peer-declared and untrusted; this bounds the upfront cost of a header-only peer to one step instead of the full declared length.