Helper type when rebuilding from snapshots. Designed to handle when rebuilding from just a
full snapshot, or from both a full snapshot and an incremental snapshot.
When constructing a bank a snapshot, traditionally the snapshot was from a snapshot archive. Now,
the snapshot can be from a snapshot directory, or from a snapshot archive. This is the flag to
indicate which.
Limit the size of the obsolete accounts file
If it exceeds this limit, remove the file which will force restore from archives
Limit is set assuming 24 bytes per entry, 5% of 10 billion accounts
= 500 million entries * 24 bytes = 12 GB
Limit the size of the storages list file.
Each (slot, id) entry encodes to 12 bytes; 100 MiB covers ~8.7 million entries, well past
any realistic storage count.
If the validator halts in the middle of archive_snapshot_package(), the temporary staging
directory won’t be cleaned up. Call this function to clean them up.