Module chain

Source
Expand description

Provides high-level access to database whole-chain:

  • history trees
  • chain value pools

This module makes sure that:

  • all disk writes happen inside a RocksDB transaction, and
  • format-specific invariants are maintained.

§Correctness

crate::constants::state_database_format_version_in_code() must be incremented each time the database format (column, serialization, etc) changes.

Constants§

CHAIN_VALUE_POOLS
The name of the chain value pools column family.
HISTORY_TREE
The name of the History Tree column family.

Type Aliases§

ChainValuePoolsCf
The type for reading value pools from the database.
HistoryTreePartsCf
The type for reading history trees from the database.
LegacyHistoryTreePartsCf
The legacy (1.3.0 and earlier) type for reading history trees from the database. This type should not be used in new code.
RawHistoryTreePartsCf
A generic raw key type for reading history trees from the database, regardless of the database version. This type should not be used in new code.