Crate solana_runtime

source ·

Modules

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.
Manage the map of slot -> append vec
Service to clean up dead slots in accounts_db
Persistent accounts are stored at this path location: <path>/<pid>/data/
Persistent storage for accounts.
The bank module tracks client accounts and the progress of on-chain programs.
The bank_forks module implements BankForks a DAG of checkpointed Banks
defines block cost related limits
Cached data for hashing accounts
Cached data for hashing accounts
’cost_model` provides service to estimate a transaction’s cost following proposed fee schedule #16984; Relevant cluster cost measuring is described by #19627
cost_tracker keeps tracking transaction cost per chained accounts as well as for entire block The main functions are:
The Epoch Accounts Hash (EAH) is a special hash of the whole accounts state that occurs once per epoch.
calculate and collect rent from Accounts
A wrapper around a root Bank that only loads from bank forks if the root has been updated. This can be useful to avoid read-locking the bank forks until the root has been updated.
Information about snapshot archives
Helper types and functions for handling and dealing with snapshot hashes.
Used to create minimal snapshots - separated here to keep accounts_db simpler
This module implements clone-on-write semantics for the SDK’s StakeHistory to reduce unnecessary cloning of the underlying vector.
Stakes serve as a cache of stake and vote accounts to derive node stakes