Skip to main content

MIN_SAMPLES_FOR_ESTIMATE

Constant MIN_SAMPLES_FOR_ESTIMATE 

Source
pub const MIN_SAMPLES_FOR_ESTIMATE: usize = 5;
Expand description

Minimum number of samples required before trusting the rolling average.

Below this threshold, BlockTimeMonitor::estimated_seconds_per_block returns None and BlockTimeMonitor::seconds_per_block_or_default uses the default value.