Remove serialization of future AppendVecs and serialize AccountStorage correctly (#5510)

This commit is contained in:
carllin
2019-08-13 16:05:37 -07:00
committed by GitHub
parent 1b6a200d6f
commit 58d4e32c97
5 changed files with 89 additions and 44 deletions

View File

@ -60,7 +60,12 @@ pub fn package_snapshot<P: AsRef<Path>, Q: AsRef<Path>>(
let snapshot_hard_links_dir = tempfile::tempdir_in(snapshot_path)?;
// Get a reference to all the relevant AccountStorageEntries
let account_storage_entries = bank.rc.get_storage_entries();
let account_storage_entries: Vec<_> = bank
.rc
.get_storage_entries()
.into_iter()
.filter(|x| x.fork_id() <= bank.slot())
.collect();
// Create a snapshot package
info!(