Skip to main content

MAX_EARLY_RELAY_ALLOWANCES

Constant MAX_EARLY_RELAY_ALLOWANCES 

Source
const MAX_EARLY_RELAY_ALLOWANCES: usize = 1_000;
Expand description

The maximum number of peer groups and parent blocks that a block downloader remembers in its EarlyRelayAllowances.

While a block is the best tip, each entry for it comes from a different peer group. So a peer group’s entry is only evicted, which gives the group another allowance for the same parent, after this many other peer groups or later parents have used theirs. That is five times the 200 peers that Zebra connects to with its default configuration. Each entry takes less than 100 bytes.