Fabcoin Core
0.16.2
P2P Digital Currency
|
#include <BlockChainHelper.h>
Public Member Functions | |
TestBlock () | |
TestBlock (std::string const &_blockRlp) | |
TestBlock (mObject const &_blockObj, mObject const &_stateObj) | |
TestBlock (TestBlock const &_original) | |
TestBlock & | operator= (TestBlock const &_original) |
void | addTransaction (TestTransaction const &_tr) |
void | addUncle (TestBlock const &_uncle) |
void | setUncles (vector< TestBlock > const &_uncles) |
void | setPremine (std::string const &_parameter) |
void | noteDirty () |
void | mine (TestBlockChain const &_bc) |
void | updateNonce (TestBlockChain const &_bc) |
void | verify (TestBlockChain const &_bc) const |
void | setBlockHeader (BlockHeader const &_header) |
void | setState (State const &_state) |
void | clearState () |
BlockHeader const & | premineHeader () |
dev::bytes const & | bytes () const |
bytesConstRef | receipts () const |
AccountMap const & | accountMap () const |
State const & | state () const |
BlockHeader const & | blockHeader () const |
TransactionQueue const & | transactionQueue () const |
TransactionQueue & | transactionQueue () |
vector< TestTransaction > const & | testTransactions () const |
vector< TestBlock > const & | uncles () const |
Address const & | beneficiary () const |
Private Member Functions | |
BlockHeader | constructBlock (mObject const &_o, h256 const &_stateRoot) |
Test Block Private. More... | |
dev::bytes | createBlockRLPFromFields (mObject const &_tObj, h256 const &_stateRoot=h256{}) |
void | recalcBlockHeaderBytes () |
void | copyStateFrom (State const &_state) |
void | populateFrom (TestBlock const &_original) |
void | premineUpdate (BlockHeader &info) |
Private Attributes | |
bool | m_dirty |
BlockHeader | m_blockHeader |
vector< TestBlock > | m_uncles |
std::unique_ptr< State > | m_state |
TransactionQueue | m_transactionQueue |
BlockQueue | m_uncleQueue |
dev::bytes | m_bytes |
std::unique_ptr< TransientDirectory > | m_tempDirState |
vector< TestTransaction > | m_testTransactions |
std::map< std::string, bool > | m_premineUpdate |
BlockHeader | m_premineHeader |
AccountMap | m_accountMap |
RLPStream | m_receipts |
Definition at line 55 of file BlockChainHelper.h.
dev::test::TestBlock::TestBlock | ( | ) |
dev::test::TestBlock::TestBlock | ( | std::string const & | _blockRlp | ) |
dev::test::TestBlock::TestBlock | ( | TestBlock const & | _original | ) |
|
inline |
void dev::test::TestBlock::addTransaction | ( | TestTransaction const & | _tr | ) |
Definition at line 111 of file BlockChainHelper.cpp.
void dev::test::TestBlock::addUncle | ( | TestBlock const & | _uncle | ) |
Definition at line 131 of file BlockChainHelper.cpp.
|
inline |
|
inline |
|
inline |
void dev::test::TestBlock::clearState | ( | ) |
Definition at line 418 of file BlockChainHelper.cpp.
|
private |
Test Block Private.
Definition at line 256 of file BlockChainHelper.cpp.
|
private |
Definition at line 409 of file BlockChainHelper.cpp.
|
private |
Definition at line 280 of file BlockChainHelper.cpp.
void dev::test::TestBlock::mine | ( | TestBlockChain const & | _bc | ) |
!! Invalid transactions are dropped here
Definition at line 178 of file BlockChainHelper.cpp.
|
inline |
Definition at line 68 of file BlockChainHelper.h.
|
private |
Definition at line 426 of file BlockChainHelper.cpp.
|
inline |
Definition at line 77 of file BlockChainHelper.h.
|
private |
Definition at line 144 of file BlockChainHelper.cpp.
|
private |
Definition at line 376 of file BlockChainHelper.cpp.
|
inline |
void dev::test::TestBlock::setBlockHeader | ( | BlockHeader const & | _header | ) |
Definition at line 249 of file BlockChainHelper.cpp.
|
inline |
void dev::test::TestBlock::setState | ( | State const & | _state | ) |
void dev::test::TestBlock::setUncles | ( | vector< TestBlock > const & | _uncles | ) |
Definition at line 137 of file BlockChainHelper.cpp.
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 84 of file BlockChainHelper.h.
|
inline |
void dev::test::TestBlock::updateNonce | ( | TestBlockChain const & | _bc | ) |
Definition at line 335 of file BlockChainHelper.cpp.
void dev::test::TestBlock::verify | ( | TestBlockChain const & | _bc | ) | const |
Definition at line 348 of file BlockChainHelper.cpp.
|
private |
Definition at line 108 of file BlockChainHelper.h.
|
private |
Definition at line 98 of file BlockChainHelper.h.
|
private |
Definition at line 103 of file BlockChainHelper.h.
|
private |
Definition at line 97 of file BlockChainHelper.h.
|
private |
Definition at line 107 of file BlockChainHelper.h.
|
private |
Definition at line 106 of file BlockChainHelper.h.
|
private |
Definition at line 109 of file BlockChainHelper.h.
|
private |
Definition at line 100 of file BlockChainHelper.h.
|
private |
Definition at line 104 of file BlockChainHelper.h.
|
private |
Definition at line 105 of file BlockChainHelper.h.
|
private |
Definition at line 101 of file BlockChainHelper.h.
|
private |
Definition at line 102 of file BlockChainHelper.h.
|
private |
Definition at line 99 of file BlockChainHelper.h.