2019-09-12 03:23:51 -07:00
|
|
|
//! Definitions of constants.
|
|
|
|
|
|
|
|
use crate::types::*;
|
|
|
|
|
2019-09-13 05:28:38 -07:00
|
|
|
/// The Zcash network protocol version used on mainnet.
|
|
|
|
pub const CURRENT_VERSION: Version = Version(170_007);
|
|
|
|
|
|
|
|
/// Magic numbers used to identify different Zcash networks.
|
|
|
|
pub mod magics {
|
|
|
|
use super::*;
|
|
|
|
/// The production mainnet.
|
|
|
|
pub const MAINNET: Magic = Magic(0x6427e924);
|
|
|
|
/// The testnet.
|
|
|
|
pub const TESTNET: Magic = Magic(0xbff91afa);
|
|
|
|
}
|