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 checkpoint;
16pub mod constants;
17mod genesis;
18mod network;
19mod network_upgrade;
20mod transaction;
21
22#[cfg(any(test, feature = "proptest-impl"))]
23pub mod arbitrary;
24
25pub use genesis::*;
26pub use network::{magic::Magic, subsidy, testnet, Network, NetworkKind};
27pub use network_upgrade::*;
28pub use transaction::*;
29
30#[cfg(test)]
31mod tests;