Constant zebra_consensus::router::VERIFIER_BUFFER_BOUND

source ยท
const VERIFIER_BUFFER_BOUND: usize = 5;
Expand description

The bound for the chain verifier and transaction verifier buffers.

We choose the verifier buffer bound based on the maximum number of concurrent verifier users, to avoid contention:

  • the ChainSync block download and verify stream
  • the Inbound block download and verify stream
  • the Mempool transaction download and verify stream
  • a block miner component, which we might add in future, and
  • 1 extra slot to avoid contention.

We deliberately add extra slots, because they only cost a small amount of memory, but missing slots can significantly slow down Zebra.