Add accounts-filler-size command line option (#23896)

This commit is contained in:
Giorgio Gambino
2022-04-11 19:10:09 +01:00
committed by GitHub
parent eb478d72d1
commit 60b2155bd3
6 changed files with 83 additions and 33 deletions

View File

@@ -125,13 +125,12 @@ pub fn load_bank_forks(
accounts_update_notifier,
)
} else {
if process_options
let maybe_filler_accounts = process_options
.accounts_db_config
.as_ref()
.and_then(|config| config.filler_account_count)
.unwrap_or_default()
> 0
{
.map(|config| config.filler_accounts_config.count > 0);
if let Some(true) = maybe_filler_accounts {
panic!("filler accounts specified, but not loading from snapshot");
}