Module zebra_state::constants
source · Expand description
Constants that impact state behaviour.
Structs§
- Regex that matches the RocksDB error when its lock file is already open.
Constants§
- The database format minor version, incremented each time the on-disk database format has a significant data format change.
- The database format patch version, incremented each time the on-disk database format has a significant format compatibility fix.
- The database format major version, incremented each time the on-disk database format has a breaking data format change.
- The name of the file containing the minor and patch database versions.
- The maximum chain reorganisation height.
- The maximum number of block hashes allowed in
getblocks
responses in the Zcash network protocol. - The maximum number of block headers allowed in
getheaders
responses in the Zcash network protocol. - The maximum number of blocks to check for NU5 transactions, before we assume we are on a pre-NU5 legacy chain.
- The maximum number of non-finalized chain forks Zebra will track. When this limit is reached, we drop the chain with the lowest work.
- The maturity threshold for transparent coinbase outputs.
- These database versions can be recreated from their directly preceding versions.
- The directory name used to distinguish the state database from Zebra’s other databases or flat files.
Functions§
- Returns the highest database version that modifies the subtree index format.
- Returns the full semantic version of the currently running state database format code.