24 #include <json/json.h> 49 std::unique_ptr<eth::BlockChain>
m_bc;
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
State const & state() const
Get the backing state object.
Implements the blockchain database.
eth::BlockChain const & bc() const
Normal Frontier/Homestead/DAO/EIP150/EIP158 chain without all the premine.
Model of an Ethereum state, essentially a facade for the trie.
Active model of a block within the block chain.
Should be used to load test blockchain from json file Loads the blockchain from json, creates temporary directory to store it, removes the directory on dealloc.
eth::State const & state() const
eth::Block const & block() const
BlockChainLoader(Json::Value const &_json, eth::Network _sealEngineNetwork=eth::Network::TransitionnetTest)
std::unique_ptr< eth::BlockChain > m_bc
temporary directory implementation It creates temporary directory in the given path.