Skip to main content

MAX_HEADERS_OR_SHARDS_PER_BUNDLE

Constant MAX_HEADERS_OR_SHARDS_PER_BUNDLE 

Source
pub const MAX_HEADERS_OR_SHARDS_PER_BUNDLE: usize = 1024;
Expand description

Ceiling on the number of headers, and on the number of shards, a bundle may declare. Enforced while decoding, before the entries are materialised, so a peer cannot make the decoder build a vector far larger than the configured caps allow it to keep. Both caps are validated against it at startup.