Constant cfx_parameters::sync::LOCAL_BLOCK_INFO_QUERY_THRESHOLD
source · pub const LOCAL_BLOCK_INFO_QUERY_THRESHOLD: u64 = 5;
Expand description
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.