2019-09-12 03:23:51 -07:00
|
|
|
//! Definitions of constants.
|
|
|
|
|
|
|
|
use crate::types::*;
|
|
|
|
|
2019-09-19 16:16:06 -07:00
|
|
|
/// The User-Agent string provided by the node.
|
|
|
|
pub const USER_AGENT: &'static str = "Zebra v2.0.0-alpha.0";
|
|
|
|
|
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.
|
2019-09-14 08:20:23 -07:00
|
|
|
pub const MAINNET: Magic = Magic([0x24, 0xe9, 0x27, 0x64]);
|
2019-09-13 05:28:38 -07:00
|
|
|
/// The testnet.
|
2019-09-14 08:20:23 -07:00
|
|
|
pub const TESTNET: Magic = Magic([0xfa, 0x1a, 0xf9, 0xbf]);
|
2019-09-19 09:38:02 -07:00
|
|
|
}
|