Module transparent

Source
Expand description

Provides high-level access to database:

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§

BALANCE_BY_TRANSPARENT_ADDR
The name of the balance by transparent address column family.
BALANCE_BY_TRANSPARENT_ADDR_MERGE_OP
The name of the BALANCE_BY_TRANSPARENT_ADDR column family’s merge operator
TX_LOC_BY_SPENT_OUT_LOC
The name of the transaction hash by spent outpoints column family.

Functions§

fetch_add_balance_and_received
A RocksDB merge operator for the BALANCE_BY_TRANSPARENT_ADDR column family.

Type Aliases§

TransactionLocationBySpentOutputLocationCf
The type for reading value pools from the database.