Module solana_runtime::snapshot_package
source · Structs
This struct packages up fields to send from AccountsBackgroundService to AccountsHashVerifier
Supplemental information needed for snapshots
Enums
Accounts packages are sent to the Accounts Hash Verifier for processing. There are multiple
types of accounts packages, which are specified as variants in this enum. All accounts
packages do share some processing: such as calculating the accounts hash.
Snapshots come in two flavors, Full and Incremental. The IncrementalSnapshot has a Slot field,
which is the incremental snapshot base slot.
Functions
Compare accounts package types by priority
Compare accounts packages by priority; first by type, then by slot
Compare snapshot types by priority
Helper function to retain only max n of elements to the right of a vector,
viz. remove v.len() - n elements from the left of the vector.
Type Definitions
The PendingSnapshotPackage passes a SnapshotPackage from AccountsHashVerifier to
SnapshotPackagerService for archiving