Structs§
Constants§
- BLOCK_
PROPAGATION_ DELAY - Measured block propagation delay in seconds. This will determine the conservative window when we measure confirmation risk internally in the consensus layer.
- CATCH_
UP_ EPOCH_ LAG_ THRESHOLD - The threshold controlling whether a node is in catch-up mode. A node is in catch-up mode if its local best epoch number is CATCH_UP_EPOCH_LAG_THRESHOLD behind the median of the epoch numbers of peers.
- DEFAULT_
CHUNK_ SIZE - LOCAL_
BLOCK_ INFO_ QUERY_ THRESHOLD - The threshold controlling whether we should query local_block_info in disk when requesting block header or block. If the difference between height of the block and current best height is less than LOCAL_BLOCK_INFO_QUERY_THRESHOLD, we can request block directly through network, otherwise we should check disk first.
- MAX_
BLOCKS_ TO_ SEND - The max number of blocks that are to be sent for compact block request.
- MAX_
EPOCHS_ TO_ SEND - The max number of epochs whose hashes are to be responded for request GetBlockHashesByEpoch
- MAX_
HEADERS_ TO_ SEND - The max number of headers that are to be sent for header block request.
- MAX_
PACKET_ SIZE - REQUEST_
TERMINAL_ EPOCH_ LAG_ THRESHOLD - This threshold controlling whether a node should request missing terminals from peers when the node is in catch-up mode.