34 namespace dev {
namespace test {
66 void setUncles(vector<TestBlock>
const& _uncles);
67 void setPremine(std::string
const& _parameter) { m_premineUpdate[_parameter] =
true; }
74 void setState(
State const& _state);
86 vector<TestBlock>
const&
uncles()
const {
return m_uncles; }
92 void recalcBlockHeaderBytes();
93 void copyStateFrom(
State const& _state);
94 void populateFrom(
TestBlock const& _original);
118 void reset(
TestBlock const& _genesisBlock);
120 vector<TestBlock> syncUncles(vector<TestBlock>
const& _uncles);
127 static TestBlock defaultGenesisBlock(
u256 const& _gasLimit = DefaultBlockGasLimit);
BlockHeader m_blockHeader
vector< TestTransaction > m_testTransactions
BlockHeader const & premineHeader()
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
TestBlock const & topBlock()
std::map< std::string, bool > m_premineUpdate
A queue of Transactions, each stored as RLP.
std::unordered_map< Address, Account > AccountMap
Implements the blockchain database.
TransactionQueue & transactionQueue()
std::unique_ptr< BlockChain > m_blockChain
BlockChain const & interface() const
BlockHeader m_premineHeader
bool verify(Public const &_k, Signature const &_s, h256 const &_hash)
Verify signature.
std::hash for asio::adress
BlockHeader const & blockHeader() const
static eth::Network s_sealEngineNetwork
Model of an Ethereum state, essentially a facade for the trie.
TransactionQueue m_transactionQueue
TestBlock const & testGenesis() const
Base class for all exceptions.
vector< TestTransaction > const & testTransactions() const
std::vector< byte > bytes
vector_ref< byte const > bytesConstRef
Fixed-size raw-byte array container type, with an API optimised for storing hashes.
bytesConstRef receipts() const
boost::multiprecision::number< boost::multiprecision::cpp_int_backend< 256, 256, boost::multiprecision::unsigned_magnitude, boost::multiprecision::unchecked, void >> u256
Encodes a transaction, ready to be exported to or freshly imported from RLP.
mConfig::Object_type mObject
void setPremine(std::string const &_parameter)
std::unique_ptr< TransientDirectory > m_tempDirBlockchain
TransactionQueue const & transactionQueue() const
State const & state() const
json_spirit::mObject & jsonObject()
vector< TestBlock > const & uncles() const
std::unique_ptr< State > m_state
BlockChain & interfaceUnsafe() const
dev::bytes const & bytes() const
boost::error_info< struct tag_comment, std::string > errinfo_comment
json_spirit::mObject m_jsonTransaction
std::unique_ptr< TransientDirectory > m_tempDirState
Transaction const & transaction() const
Address const & beneficiary() const
Class for writing to an RLP bytestream.
void mine(Client &c, int numBlocks)
TestTransaction(Transaction const &_tr)
Transaction m_transaction
AccountMap const & accountMap() const
vector< TestBlock > m_uncles