Wallclock BankingStage Throttle (#15731) (#15889)

(cherry picked from commit c1ba265dd9)

Co-authored-by: carllin <carl@solana.com>
This commit is contained in:
mergify[bot]
2021-03-16 08:40:03 +00:00
committed by GitHub
parent 0de081c776
commit 191e51b01d
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;