pub enum Network {
Mainnet,
Stagenet,
Testnet,
}
Expand description
The list of the existing Monero networks.
Network implements Default
and returns Network::Mainnet
.
Variants§
Mainnet
Mainnet is the “production” network and blockchain.
Stagenet
Stagenet is technically equivalent to mainnet, both in terms of features and consensus rules.
Testnet
Testnet is the “experimental” network and blockchain where things get released long before mainnet.
Implementations§
source§impl Network
impl Network
sourcepub fn as_u8(self, addr_type: &AddressType) -> u8
pub fn as_u8(self, addr_type: &AddressType) -> u8
Get the associated magic byte given an address type.
Source: monero/src/cryptonote_config.h