Constant zebrad::components::inbound::GETDATA_MAX_BLOCK_COUNT

source ·
pub const GETDATA_MAX_BLOCK_COUNT: usize = 16;
Expand description

The maximum number of blocks the Inbound service will queue in response to a block request, before ignoring any additional block IDs in that request.

This is the same as zcashd’s request limit: https://github.com/zcash/zcash/blob/829dd94f9d253bb705f9e194f13cb8ca8e545e1e/src/main.h#L108

(Zebra’s request limit is one block in transit per peer, because it fans out block requests to many peers instead of just a few peers.)