zebra_state::service::finalized_state::zebra_db

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§

Type Aliases§

  • The type for reading value pools from the database.
  • The type for reading history trees from the database.
  • The legacy (1.3.0 and earlier) type for reading history trees from the database. This type should not be used in new code.
  • 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.