add filler accounts to bloat validator and predict failure (#20491)

* add filler accounts to bloat validator and predict failure

* assert no accounts match filler

* cleanup magic numbers

* panic if can't load from snapshot with filler accounts specified

* some renames

* renames

* into_par_iter

* clean filler accts, too
This commit is contained in:
Jeff Washington (jwash)
2021-10-11 12:46:27 -05:00
committed by GitHub
parent 61ba8d1ecf
commit a8e000a2a6
11 changed files with 303 additions and 74 deletions

View File

@ -97,6 +97,16 @@ pub fn load(
info!("Snapshots disabled; will load from genesis");
}
if process_options
.accounts_db_config
.as_ref()
.and_then(|config| config.filler_account_count)
.unwrap_or_default()
> 0
{
panic!("filler accounts specified, but not loading from snapshot");
}
load_from_genesis(
genesis_config,
blockstore,