Bank snapshots traditionally had their accounts hash calculated prior to serialization. Since
the hash calculation takes a long time, an optimization has been put in to offload the accounts
hash calculation. The bank serialization format has not changed, so we need another way to
identify if a bank snapshot contains the calculated accounts hash or not.
Utility for parsing out bank specific information from a snapshot archive. This utility can be used
to parse out bank specific information like the leader schedule, epoch schedule, etc.
Rebuild bank from snapshot archives. This function searches full_snapshot_archives_dir and incremental_snapshot_archives_dir for the
highest full snapshot and highest corresponding incremental snapshot, then rebuilds the bank.
Convenience function to create a full snapshot archive out of any Bank, regardless of state.
The Bank will be frozen during the process.
This is only called from ledger-tool or tests. Warping is a special case as well.
Convenience function to create an incremental snapshot archive out of any Bank, regardless of
state. The Bank will be frozen during the process.
This is only called from ledger-tool or tests. Warping is a special case as well.
Build the full snapshot archive path from its components: the snapshot archives directory, the
snapshot slot, the accounts hash, and the archive format.
Build the incremental snapshot archive path from its components: the snapshot archives
directory, the snapshot base slot, the snapshot slot, the accounts hash, and the archive
format.
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.