Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
h256 calculateStateRoot(bool _force=false) const
std::unordered_map< Address, Account > AccountMap
bytes genesisBlock() const
Genesis block info.
ChainParams loadGenesisState(std::string const &_json, h256 const &_stateRoot=h256()) const
void populateFromGenesis(bytes const &_genesisRLP, AccountMap const &_state)
h160 Address
An Ethereum address: 20 bytes.
ChainParams(bytes const &_genesisRLP, AccountMap const &_state)
ChainParams loadConfig(std::string const &_json, h256 const &_stateRoot=h256()) const
load config/genesis
ChainParams(std::string const &_json, bytes const &_genesisRLP, AccountMap const &_state)
ChainParams loadGenesis(std::string const &_json, h256 const &_stateRoot=h256()) const
h256 stateRoot
Only pre-populate if known equivalent to genesisState's root. If they're different Bad Things Will Ha...
std::vector< byte > bytes
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< 256, 256, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void >> u256
h256 parentHash
Genesis params.
SealEngineFace * createSealEngine()