Allow unbounded wallclock processing time in tests (#15961)

This commit is contained in:
carllin
2021-03-17 15:48:50 -07:00
committed by GitHub
parent 03180b502d
commit f548a04fae
2 changed files with 20 additions and 10 deletions

View File

@ -902,6 +902,21 @@ impl Bank {
)
}
pub fn new_no_wallclock_throttle(genesis_config: &GenesisConfig) -> Self {
let mut bank = Self::new_with_paths(
&genesis_config,
Vec::new(),
&[],
None,
None,
HashSet::new(),
false,
);
bank.ns_per_slot = std::u128::MAX;
bank
}
#[cfg(test)]
pub(crate) fn new_with_config(
genesis_config: &GenesisConfig,