started_from_validator, ignore env var for cli (#23309)

This commit is contained in:
Jeff Washington (jwash)
2022-02-23 17:15:43 -06:00
committed by GitHub
parent cafc18c3f9
commit 99a057927c
2 changed files with 19 additions and 1 deletions

View File

@ -582,6 +582,8 @@ fn main() {
}
let mut genesis = TestValidatorGenesis::default();
// this startup path should act like we started from a validator
genesis.started_from_validator = true;
genesis.max_ledger_shreds = value_of(&matches, "limit_ledger_size");
genesis.max_genesis_archive_unpacked_size = Some(u64::MAX);
genesis.accounts_db_caching_enabled = !matches.is_present("no_accounts_db_caching");