solana_runtime

Module serde_snapshot

Source

Structs§

AccountsDbFields
BankFromStreamsInfo
This struct contains side-info while reconstructing the bank from streams
BankIncrementalSnapshotPersistence
Incremental snapshots only calculate their accounts hash based on the account changes WITHIN the incremental slot range. So, we need to keep track of the full snapshot expected accounts hash results. We also need to keep track of the hash and capitalization specific to the incremental snapshot slot range. The capitalization we calculate for the incremental slot will NOT be consistent with the bank’s capitalization. It is not feasible to calculate a capitalization delta that is correct given just incremental slots account data and the full snapshot’s capitalization.
ExtraFieldsToSerialize
Extra fields that are serialized at the end of snapshots.
ReconstructedAccountsDbInfo
This struct contains side-info while reconstructing the accounts DB from fields.
SnapshotAccountsDbFields
Helper type to wrap AccountsDbFields when reconstructing AccountsDb from either just a full snapshot, or both a full and incremental snapshot
SnapshotBankFields
Helper type to wrap BankFields when reconstructing Bank from either just a full snapshot, or both a full and incremental snapshot
SnapshotStreams
Helper type to wrap BufReader streams when deserializing and reconstructing from either just a full snapshot, or both a full and incremental snapshot

Functions§

serialize_bank_snapshot_into
Serializes bank snapshot into stream with bincode
serialize_bank_snapshot_with
Serializes bank snapshot with serializer