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:
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user