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:
committed by
GitHub
parent
61ba8d1ecf
commit
a8e000a2a6
@ -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,
|
||||
|
Reference in New Issue
Block a user