Wallclock BankingStage Throttle (#15731)

This commit is contained in:
carllin
2021-03-15 17:11:15 -07:00
committed by GitHub
parent 60e5fd11c9
commit c1ba265dd9
6 changed files with 177 additions and 62 deletions

View File

@ -6,6 +6,8 @@ pub const DEFAULT_TICKS_PER_SECOND: u64 = 160;
pub const MS_PER_TICK: u64 = 1000 / DEFAULT_TICKS_PER_SECOND;
pub const SLOT_MS: u64 = (DEFAULT_TICKS_PER_SLOT * 1000) / DEFAULT_TICKS_PER_SECOND;
// At 160 ticks/s, 64 ticks per slot implies that leader rotation and voting will happen
// every 400 ms. A fast voting cadence ensures faster finality and convergence
pub const DEFAULT_TICKS_PER_SLOT: u64 = 64;