pub fn from_chain_type(chain_type: ChainTypes) -> Result<Self, ErrorKind> {
		match chain_type {
			ChainTypes::Floonet => Ok(Network::Floonet),
			ChainTypes::Mainnet => Ok(Network::Mainnet),
			_ => Err(ErrorKind::UnexpectedNetwork(format!("{:?}", chain_type))),
		}
	}
/// Constructor from mwc-node ChainTypes
Constructor from mwc-node ChainTypes
Constructor from mwc - node ChainTypes
pub fn from_chain_type(chain_type: ChainTypes) -> Result<Self, ErrorKind> {
		match chain_type {
			ChainTypes::Floonet => Ok(Network::Floonet),
			ChainTypes::Mainnet => Ok(Network::Mainnet),
			_ => Err(ErrorKind::UnexpectedNetwork(format!("{:?}", chain_type))),
		}
	}
pub fn from_chain_type ( chain_type : ChainTypes ) -> Result < Self , ErrorKind > { match chain_type { ChainTypes :: Floonet => Ok ( Network :: Floonet ) , ChainTypes :: Mainnet => Ok ( Network :: Mainnet ) , _ => Err ( ErrorKind :: UnexpectedNetwork ( format ! ( " " chain_type ) ) ) , } }
Constructor from mwc-node ChainTypes
Constructor from mwc - node ChainTypes
chain_type
ChainTypes
chain_type
ChainTypes