Stabilize some banking stage tests (#6251)

* Stabilize some banking stage tests

Fixes #5660

* Fix CI...

* clean up

* Fix ci

* Address review nits

* Use bank.max_tick_height due to off-by-one for no PohRecord's clearing bank

* Fix CI...

* Use bank.max_tick_height() instead for clarity
This commit is contained in:
Ryo Onodera
2019-10-17 04:37:27 +09:00
committed by carllin
parent f4c5da3c72
commit e267dfacdd
7 changed files with 61 additions and 19 deletions

View File

@ -6,6 +6,9 @@ pub struct PohConfig {
/// The target tick rate of the cluster.
pub target_tick_duration: Duration,
/// The target total tick count to be produced; used for testing only
pub target_tick_count: Option<u64>,
/// How many hashes to roll before emitting the next tick entry.
/// None enables "Low power mode", which implies:
/// * sleep for `target_tick_duration` instead of hashing
@ -18,6 +21,7 @@ impl PohConfig {
Self {
target_tick_duration,
hashes_per_tick: None,
target_tick_count: None,
}
}
}