Only serialize rooted append vecs (#7281)

This commit is contained in:
sakridge
2019-12-05 14:27:46 -08:00
committed by GitHub
parent 3799190fa0
commit cfc21e1225
4 changed files with 57 additions and 31 deletions

View File

@ -74,7 +74,7 @@ pub fn package_snapshot<P: AsRef<Path>, Q: AsRef<Path>>(
// Get a reference to all the relevant AccountStorageEntries
let account_storage_entries: Vec<_> = bank
.rc
.get_storage_entries()
.get_rooted_storage_entries()
.into_iter()
.filter(|x| x.slot_id() <= bank.slot())
.collect();