type AccountSecondaryIndexes = HashSet (#17108)

This commit is contained in:
Jeff Washington (jwash)
2021-05-10 09:22:48 -05:00
committed by GitHub
parent a6a1355b80
commit f39dda00e0
13 changed files with 224 additions and 139 deletions

View File

@@ -1,7 +1,7 @@
use {
crate::{
accounts_db::AccountsDb,
accounts_index::AccountIndex,
accounts_index::AccountSecondaryIndexes,
bank::{Bank, BankSlotDelta, Builtins},
bank_forks::ArchiveFormat,
hardened_unpack::{unpack_snapshot, UnpackError, UnpackedAppendVecMap},
@@ -593,7 +593,7 @@ pub fn bank_from_archive<P: AsRef<Path>>(
genesis_config: &GenesisConfig,
debug_keys: Option<Arc<HashSet<Pubkey>>>,
additional_builtins: Option<&Builtins>,
account_indexes: HashSet<AccountIndex>,
account_indexes: AccountSecondaryIndexes,
accounts_db_caching_enabled: bool,
) -> Result<Bank> {
let unpack_dir = tempfile::Builder::new()
@@ -772,7 +772,7 @@ fn rebuild_bank_from_snapshots(
genesis_config: &GenesisConfig,
debug_keys: Option<Arc<HashSet<Pubkey>>>,
additional_builtins: Option<&Builtins>,
account_indexes: HashSet<AccountIndex>,
account_indexes: AccountSecondaryIndexes,
accounts_db_caching_enabled: bool,
) -> Result<Bank> {
info!("snapshot version: {}", snapshot_version);