Module constants

Source
Expand description

Constants that impact state behaviour.

Structs§

LOCK_FILE_ERROR
Regex that matches the RocksDB error when its lock file is already open.

Constants§

DATABASE_FORMAT_MINOR_VERSION 🔒
The database format minor version, incremented each time the on-disk database format has a significant data format change.
DATABASE_FORMAT_PATCH_VERSION 🔒
The database format patch version, incremented each time the on-disk database format has a significant format compatibility fix.
DATABASE_FORMAT_VERSION 🔒
The database format major version, incremented each time the on-disk database format has a breaking data format change.
DATABASE_FORMAT_VERSION_FILE_NAME 🔒
The name of the file containing the database version.
MAX_BLOCK_REORG_HEIGHT
The maximum chain reorganisation height.
MAX_FIND_BLOCK_HASHES_RESULTS
The maximum number of block hashes allowed in getblocks responses in the Zcash network protocol.
MAX_FIND_BLOCK_HEADERS_RESULTS
The maximum number of block headers allowed in getheaders responses in the Zcash network protocol.
MAX_INVALIDATED_BLOCKS
The maximum number of invalidated block records.
MAX_LEGACY_CHAIN_BLOCKS
The maximum number of blocks to check for NU5 transactions, before we assume we are on a pre-NU5 legacy chain.
MAX_NON_FINALIZED_CHAIN_FORKS
The maximum number of non-finalized chain forks Zebra will track. When this limit is reached, we drop the chain with the lowest work.
MIN_TRANSPARENT_COINBASE_MATURITY
The maturity threshold for transparent coinbase outputs.
STATE_DATABASE_KIND
The directory name used to distinguish the state database from Zebra’s other databases or flat files.

Functions§

state_database_format_version_in_code
Returns the full semantic version of the currently running state database format code.