41 case Network::MainNetwork:
return c_genesisInfoMainNetwork;
42 case Network::MainNetworkTest:
return c_genesisInfoMainNetworkTest;
43 case Network::Ropsten:
return c_genesisInfoRopsten;
44 case Network::TransitionnetTest:
return c_genesisInfoTest;
45 case Network::FrontierTest:
return c_genesisInfoFrontierTest;
46 case Network::HomesteadTest:
return c_genesisInfoHomesteadTest;
47 case Network::EIP150Test:
return c_genesisInfoEIP150Test;
48 case Network::EIP158Test:
return c_genesisInfoEIP158Test;
49 case Network::MetropolisTest:
return c_genesisInfoMetropolisTest;
50 case Network::fascMainNetwork:
return c_genesisInfoFascMainNetwork;
51 case Network::fascTestNetwork:
return c_genesisInfoFascTestNetwork;
53 throw std::invalid_argument(
"Invalid network value");
61 case Network::MainNetwork:
return c_genesisStateRootMainNetwork;
62 case Network::Ropsten:
return c_genesisStateRootRopsten;
63 case Network::MainNetworkTest:
return c_genesisStateRootMainNetworkTest;
64 case Network::TransitionnetTest:
return c_genesisStateRootTest;
65 case Network::FrontierTest:
return c_genesisStateRootFrontierTest;
66 case Network::HomesteadTest:
return c_genesisStateRootHomesteadTest;
67 case Network::EIP150Test:
return c_genesisStateRootEIP150Test;
68 case Network::EIP158Test:
return c_genesisStateRootEIP158Test;
69 case Network::MetropolisTest:
return c_genesisStateRootMetropolisTest;
70 case Network::fascMainNetwork:
return c_genesisStateRootFascMainNetwork;
71 case Network::fascTestNetwork:
return c_genesisStateRootFascTestNetwork;
73 throw std::invalid_argument(
"Invalid network value");
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
h256 const & genesisStateRoot(Network _n)
std::string const & genesisInfo(Network _n)