Module solana_runtime::serde_snapshot
source · Modules
Structs
- This struct contains side-info while reconstructing the accounts DB from fields.
- Helper type to wrap AccountsDbFields when reconstructing AccountsDb from either just a full snapshot, or both a full and incremental snapshot
- Helper type to wrap BankFields when reconstructing Bank from either just a full snapshot, or both a full and incremental snapshot
- Helper type to wrap BufReader streams when deserializing and reconstructing from either just a full snapshot, or both a full and incremental snapshot
Enums
- __Field 🔒
Constants
- FIELDS 🔒
Traits
Functions
- used by tests to compare contents of serialized bank fields serialized format is not deterministic - likely due to randomness in structs like hashmaps
- populate ‘historical_roots’ from ‘snapshot_historical_roots’ and ‘snapshot_historical_roots_with_hash’
- deserialize the bank from ‘stream_reader’ modify the accounts_hash reserialize the bank to ‘stream_writer’
- effectively updates the accounts hash in the serialized bank file on disk read serialized bank from pre file update accounts_hash write serialized bank to post file return true if pre file found
- Get snapshot storage lengths from accounts_db_fields