Crate solana_accounts_db

Source

Re-exports§

pub use accounts_hash::CalculateHashIntermediate as CacheHashDataFileEntry;

Modules§

account_info
AccountInfo represents a reference to AccountSharedData in either an AppendVec or the write cache. AccountInfo is not persisted anywhere between program runs. AccountInfo is purely runtime state. Note that AccountInfo is saved to disk buckets during runtime, but disk buckets are recreated at startup.
account_locks
account_storage
Manage the map of slot -> append vec
accounts
accounts_db
Persistent accounts are stored at this path location: <path>/<pid>/data/
accounts_file
accounts_hash
accounts_index
accounts_index_storage
accounts_partition
Partitioning of the accounts into chunks for rent collection
accounts_update_notifier_interface
ancestors
append_vec
Persistent storage for accounts.
blockhash_queue
contains
epoch_accounts_hash
The Epoch Accounts Hash (EAH) is a special hash of the whole accounts state that occurs once per epoch.
hardened_unpack
partitioned_rewards
Code related to partitioned rewards distribution
pubkey_bins
secondary_index
shared_buffer_reader
SharedBuffer is given a Reader and SharedBufferReader implements the Reader trait. SharedBuffer reads ahead in the underlying file and saves the data. SharedBufferReaders can be created for the buffer and independently keep track of each reader’s read location. The background reader keeps track of the progress of each client. After data has been read by all readers, the buffer is recycled and reading ahead continues. A primary use case is the underlying reader being decompressing a file, which can be computationally expensive. The clients of SharedBufferReaders could be parallel instances which need access to the decompressed data.
sorted_storages
stake_rewards
Code for stake and vote rewards
storable_accounts
trait for abstracting underlying storage of pubkey and account pairs to be written
tiered_storage
utils
waitable_condvar

Macros§

u64_align

Structs§

CacheHashDataFileHeader
ParsedCacheHashDataFilename
The values of each part of a cache hash data filename

Functions§

parse_cache_hash_data_filename
Parses a cache hash data filename into its parts