Inline load_from_genesis

This commit is contained in:
Michael Vines 2022-03-05 13:41:18 +01:00
parent 12337d8daf
commit 9cfa21f7d1
1 changed files with 0 additions and 22 deletions

View File

@ -108,28 +108,6 @@ pub fn load(
panic!("filler accounts specified, but not loading from snapshot");
}
load_from_genesis(
genesis_config,
blockstore,
account_paths,
process_options,
cache_block_meta_sender,
snapshot_config,
accounts_package_sender,
accounts_update_notifier,
)
}
fn load_from_genesis(
genesis_config: &GenesisConfig,
blockstore: &Blockstore,
account_paths: Vec<PathBuf>,
process_options: ProcessOptions,
cache_block_meta_sender: Option<&CacheBlockMetaSender>,
snapshot_config: Option<&SnapshotConfig>,
accounts_package_sender: AccountsPackageSender,
accounts_update_notifier: Option<AccountsUpdateNotifier>,
) -> LoadResult {
info!("Processing ledger from genesis");
to_loadresult(
blockstore_processor::process_blockstore(