Expand description
Constants that impact state behaviour.
StructsΒ§
- LOCK_
FILE_ ERROR - Regex that matches the panic when another process holds the state database lock.
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; it bounds the length of the best
non-finalized chain. The value lives in
zebra-chainso tooling (e.g.zebra-checkpoints) can use it without depending onzebra-state. - MAX_
FIND_ BLOCK_ HASHES_ RESULTS - The maximum number of block hashes allowed in
getblocksresponses in the Zcash network protocol. - MAX_
FIND_ BLOCK_ HEADERS_ RESULTS - The maximum number of block headers allowed in
getheadersresponses 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.
- MAX_
NON_ FINALIZED_ CHAIN_ FORKS_ TEST_ NETWORKS - The maximum number of non-finalized chain forks Zebra will track on test networks.
- MAX_
NON_ FINALIZED_ INDEX_ ENTRIES - The maximum total number of index entries in all non-finalized chains on Mainnet.
- MAX_
NON_ FINALIZED_ INDEX_ ENTRIES_ TEST_ NETWORKS - The maximum total number of index entries in all non-finalized chains on test networks.
- MIN_
NON_ πFINALIZED_ BLOCKS_ OVER_ INDEX_ LIMIT - The minimum number of blocks Zebra keeps in the best non-finalized chain when the index entry
limit makes it finalize blocks before the chain reaches
MAX_BLOCK_REORG_HEIGHT. - 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.