[v0.12] Reduce ticks per second (#3287)

* Reduce ticks per second

- It's improving TPS. Temp fix for beacons timeframe

* Fix confirmation test
This commit is contained in:
Pankaj Garg
2019-03-15 14:15:54 -07:00
committed by GitHub
parent b2d6681762
commit 1e70f85e83
3 changed files with 18 additions and 6 deletions

View File

@@ -2,7 +2,7 @@
use std::time::Duration;
use std::time::{SystemTime, UNIX_EPOCH};
pub const NUM_TICKS_PER_SECOND: u64 = 100;
pub const NUM_TICKS_PER_SECOND: u64 = 10;
// At 10 ticks/s, 8 ticks per slot implies that leader rotation and voting will happen
// every 800 ms. A fast voting cadence ensures faster finality and convergence