zebra_chain/parameters.rs
1//! Consensus parameters for each Zcash network.
2//!
3//! This module contains the consensus parameters which are required for
4//! parsing.
5//!
6//! Some consensus parameters change based on network upgrades. Each network
7//! upgrade happens at a particular block height. Some parameters have a value
8//! (or function) before the upgrade height, at the upgrade height, and after
9//! the upgrade height. (For example, the value of the reserved field in the
10//! block header during the Heartwood upgrade.)
11//!
12//! Typically, consensus parameters are accessed via a function that takes a
13//! `Network` and `block::Height`.
14
15pub mod constants;
16mod genesis;
17mod network;
18mod network_upgrade;
19mod transaction;
20
21#[cfg(any(test, feature = "proptest-impl"))]
22pub mod arbitrary;
23
24pub use genesis::*;
25pub use network::{magic::Magic, subsidy, testnet, Network, NetworkKind};
26pub use network_upgrade::*;
27pub use transaction::*;
28
29#[cfg(test)]
30mod tests;