Do periodic inbound cleaning for rooted slots (#8436) (#8583)

automerge
This commit is contained in:
mergify[bot]
2020-03-02 23:04:57 -08:00
committed by GitHub
parent 8df4cf2895
commit f4385f7ad2
4 changed files with 262 additions and 50 deletions

View File

@@ -337,7 +337,7 @@ pub fn add_snapshot<P: AsRef<Path>>(
bank: &Bank,
snapshot_storages: &[SnapshotStorage],
) -> Result<SlotSnapshotPaths> {
bank.purge_zero_lamport_accounts();
bank.clean_accounts();
bank.update_accounts_hash();
let slot = bank.slot();
// snapshot_path/slot