22 #include <json/writer.h> 47 for (
auto const&
block: _json[
"blocks"])
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
std::pair< TransactionReceipts, bool > sync(BlockChain const &_bc, TransactionQueue &_tq, GasPricer const &_gp, unsigned _msTimeout=100)
Sync our transactions, killing those from the queue that we have and assimilating those that we don't...
Implements the blockchain database.
bytes rlp(_T _t)
Export a single item in RLP format, returning a byte array.
std::hash for asio::adress
assert(len-trim+(2 *lenIndices)<=WIDTH)
Active model of a block within the block chain.
bytes fromHex(std::string const &_s, WhenError _throw=WhenError::DontThrow)
eth::State const & state() const
std::vector< byte > bytes
eth::Block const & block() const
std::string const & genesisInfo(Network _n)
std::unique_ptr< eth::BlockChain > m_bc
std::string const & path() const
AccountMap jsonToAccountMap(std::string const &_json, u256 const &_defaultNonce=0, AccountMaskMap *o_mask=nullptr, PrecompiledContractMap *o_precompiled=nullptr)
h256 rootHash() const
The hash of the root of our state tree.
std::string asString(bytes const &_b)
Converts byte array to a string containing the same (binary) data.