Bank::default_for_tests() (#19084)

This commit is contained in:
Jeff Washington (jwash)
2021-08-05 11:53:29 -05:00
committed by GitHub
parent 24207a09ac
commit a9014ceceb
7 changed files with 12 additions and 7 deletions

View File

@ -1047,6 +1047,11 @@ impl Default for BlockhashQueue {
}
impl Bank {
pub fn default_for_tests() -> Self {
// will diverge
Self::default()
}
pub fn new_for_benches(genesis_config: &GenesisConfig) -> Self {
// this will diverge
Self::new_for_tests(genesis_config)