Serialize a bank to a snapshot
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
follow the prototype of fn bank_from_latest_snapshot_archives, implement the from_dir case
Rebuild bank from snapshot archives. Handles either just a full snapshot, or both a full
snapshot and an incremental snapshot.
Build bank from a snapshot (a snapshot directory, not a snapshot archive)
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.
Get the snapshot storages for this bank
Helper function to hold shared code to package, process, and archive full snapshots
Helper function to hold shared code to package, process, and archive incremental snapshots