Set proper count value for account stores (#4797) (#4813)

* set count values for store accounts

* Use AppendVecId type

(cherry picked from commit 9e7f618cff)
This commit is contained in:
mergify[bot]
2019-06-25 07:57:40 -07:00
committed by Michael Vines
parent e781cbf4ba
commit 85a77bec5f
5 changed files with 50 additions and 35 deletions

View File

@ -329,8 +329,9 @@ impl BankForks {
names.sort();
let mut bank_maps = vec![];
let status_cache_rc = StatusCacheRc::default();
let id = (names[names.len() - 1] + 1) as usize;
let mut bank0 =
Bank::create_with_genesis(&genesis_block, account_paths.clone(), &status_cache_rc);
Bank::create_with_genesis(&genesis_block, account_paths.clone(), &status_cache_rc, id);
bank0.freeze();
let bank_root = BankForks::load_snapshots(
&names,