This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
[Incremental Snapshots] Filter account_storage_entries when serializing accounts_db_fields for an incremental snapshot #18813
Labels
During serialization of accounts_db for an incremental snapshot, filter out the storage entries for all slots less-than-or-equal-to the full snapshot slot.
Original code:
solana/runtime/src/serde_snapshot/future.rs
Lines 247 to 257 in 3542348
So, instead of
map()
, can callfilter_map()
and do the same filtering that is done inBank::get_incremental_snapshot_storages()
:solana/runtime/src/bank.rs
Lines 4733 to 4744 in d048750
Below is the original comment and context from the original PR
Originally posted by @carllin in #18504 (comment)
The text was updated successfully, but these errors were encountered: