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

Method loadGenesisState

src/cpp-ethereum/libethereum/ChainParams.cpp:80–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80ChainParams ChainParams::loadGenesisState(string const& _json, h256 const& _stateRoot) const
81{
82 ChainParams cp(*this);
83 cp.genesisState = jsonToAccountMap(_json, cp.accountStartNonce, nullptr, &cp.precompiled);
84 cp.stateRoot = _stateRoot ? _stateRoot : cp.calculateStateRoot(true);
85 return cp;
86}
87
88ChainParams ChainParams::loadGenesis(string const& _json, h256 const& _stateRoot) const
89{

Callers 1

loadConfigMethod · 0.80

Calls 1

calculateStateRootMethod · 0.80

Tested by

no test coverage detected