Expand description
Client backend that is backed by a database.
§Canonicality vs. Finality
Finality indicates that a block will not be reverted, according to the consensus algorithm, while canonicality indicates that the block may be reverted, but we will be unable to do so, having discarded heavy state that will allow a chain reorganization.
Finality implies canonicality but not vice-versa.
Re-exports§
pub use bench::BenchmarkingState;
Modules§
- bench
- State backend that’s useful for benchmarking
- offchain
- RocksDB-based offchain workers local storage.
Structs§
- Backend
- Disk backend.
- Block
Import Operation - Database transaction
- Blockchain
Db - Block database
- Database
Settings - Database settings.
- RawIter
- A raw iterator over the
RefTrackingState
. - RefTracking
State - A reference tracking state.
Enums§
- Blocks
Pruning - Block pruning settings.
- Database
Source - Where to find the database..
- Pruning
Mode - Pruning mode.
Traits§
Type Aliases§
- DbHash
- Hash type that this backend uses for the database.
- DbState
- DB-backed patricia trie state, transaction type is an overlay of changes to commit.
- DbState
Builder - Builder for
DbState
.