zebra/zebra-chain/src/parameters/network.rs

19 lines
399 B
Rust
Raw Normal View History

#[cfg(test)]
use proptest_derive::Arbitrary;
/// An enum describing the possible network choices.
#[derive(Copy, Clone, Debug, Eq, PartialEq, Hash, Serialize, Deserialize)]
#[cfg_attr(test, derive(Arbitrary))]
pub enum Network {
/// The production mainnet.
Mainnet,
/// The testnet.
Testnet,
}
impl Default for Network {
fn default() -> Self {
Network::Mainnet
}
}