Module zebra_chain::parameters

source Β·
Expand description

Consensus parameters for each Zcash network.

This module contains the consensus parameters which are required for parsing.

Some consensus parameters change based on network upgrades. Each network upgrade happens at a particular block height. Some parameters have a value (or function) before the upgrade height, at the upgrade height, and after the upgrade height. (For example, the value of the reserved field in the block header during the Heartwood upgrade.)

Typically, consensus parameters are accessed via a function that takes a Network and block::Height.

Modules§

  • Arbitrary implementations for network parameters
  • Definitions of Zebra chain constants, including:
  • genesis πŸ”’
    Genesis consensus parameters for each Zcash network.
  • network πŸ”’
    Consensus parameters for each Zcash network.
  • network_upgrade πŸ”’
    Network upgrade consensus parameters for Zcash.
  • Constants and calculations for Block Subsidy and Funding Streams
  • Types and implementation for Testnet consensus parameters
  • transaction πŸ”’
    Transaction consensus and utility parameters.

Structs§

  • The Consensus Branch Id, used to bind transactions and blocks to a particular network upgrade.
  • A magic number identifying the network.

Enums§

  • An enum describing the possible network choices.
  • An enum describing the kind of network, whether it’s the production mainnet or a testnet.
  • A Zcash network upgrade.

Constants§