MCPcopy Create free account
hub / github.com/LUX-Core/lux / netIdToString

Function netIdToString

src/cpp-ethereum/test/libtesteth/TestHelper.cpp:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92
93string netIdToString(eth::Network _netId)
94{
95 switch(_netId)
96 {
97 case eth::Network::FrontierTest: return "Frontier";
98 case eth::Network::HomesteadTest: return "Homestead";
99 case eth::Network::EIP150Test: return "EIP150";
100 case eth::Network::EIP158Test: return "EIP158";
101 case eth::Network::MetropolisTest: return "Metropolis";
102 default: return "other";
103 }
104 return "unknown";
105}
106
107eth::Network stringToNetId(string const& _netname)
108{

Callers 4

executeTestMethod · 0.85
exportTestMethod · 0.85
stringToNetIdFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected