solana/runtime
Brooks Prumo 00890957ee
Add snapshot_utils::bank_from_latest_snapshot_archives() (#18983)
While reviewing PR #18565, as issue was brought up to refactor some code
around verifying the bank after rebuilding from snapshots.  A new
top-level function has been added to get the latest snapshot archives
and load the bank then verify.  Additionally, new tests have been
written and existing tests have been updated to use this new function.

Fixes #18973

While resolving the issue, it became clear there was some additional
low-hanging fruit this change enabled.  Specifically, the functions
`bank_to_xxx_snapshot_archive()` now return their respective
`SnapshotArchiveInfo`.  And on the flip side,
`bank_from_snapshot_archives()` now takes `SnapshotArchiveInfo`s instead
of separate paths and archive formats.  This bundling simplifies bank
rebuilding.
2021-08-06 20:16:06 -05:00
..
benches accounts default refactoring stragglers (#19097) 2021-08-06 12:36:42 -05:00
src Add snapshot_utils::bank_from_latest_snapshot_archives() (#18983) 2021-08-06 20:16:06 -05:00
store-tool chore: bump log from 0.4.11 to 0.4.14 (#18323) 2021-06-30 18:32:01 +00:00
tests accounts default refactoring stragglers (#19097) 2021-08-06 12:36:42 -05:00
.gitignore
Cargo.toml chore: bump serde from 1.0.126 to 1.0.127 (#19010) 2021-08-02 21:16:34 +00:00
build.rs Remove frozen ABI modules from solana-sdk 2020-10-20 16:11:30 -07:00