Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | List of all members
dev::test::TestBlockChain Class Reference

#include <BlockChainHelper.h>

Collaboration diagram for dev::test::TestBlockChain:
[legend]

Public Member Functions

 TestBlockChain ()
 
 TestBlockChain (TestBlock const &_genesisBlock)
 
void reset (TestBlock const &_genesisBlock)
 
bool addBlock (TestBlock const &_block)
 
vector< TestBlocksyncUncles (vector< TestBlock > const &_uncles)
 
TestBlock const & topBlock ()
 
BlockChain const & interface () const
 
BlockChaininterfaceUnsafe () const
 
TestBlock const & testGenesis () const
 

Static Public Member Functions

static json_spirit::mObject defaultGenesisBlockJson ()
 
static TestBlock defaultGenesisBlock (u256 const &_gasLimit=DefaultBlockGasLimit)
 
static AccountMap defaultAccountMap ()
 

Static Public Attributes

static eth::Network s_sealEngineNetwork = eth::Network::FrontierTest
 

Private Attributes

std::unique_ptr< BlockChainm_blockChain
 
TestBlock m_genesisBlock
 
TestBlock m_lastBlock
 
std::unique_ptr< TransientDirectorym_tempDirBlockchain
 

Detailed Description

Definition at line 112 of file BlockChainHelper.h.

Constructor & Destructor Documentation

dev::test::TestBlockChain::TestBlockChain ( )
inline

Definition at line 115 of file BlockChainHelper.h.

dev::test::TestBlockChain::TestBlockChain ( TestBlock const &  _genesisBlock)

Definition at line 450 of file BlockChainHelper.cpp.

Member Function Documentation

bool dev::test::TestBlockChain::addBlock ( TestBlock const &  _block)

Definition at line 471 of file BlockChainHelper.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

AccountMap dev::test::TestBlockChain::defaultAccountMap ( )
static

Definition at line 548 of file BlockChainHelper.cpp.

TestBlock dev::test::TestBlockChain::defaultGenesisBlock ( u256 const &  _gasLimit = DefaultBlockGasLimit)
static

Definition at line 576 of file BlockChainHelper.cpp.

Here is the call graph for this function:

json_spirit::mObject dev::test::TestBlockChain::defaultGenesisBlockJson ( )
static

Definition at line 555 of file BlockChainHelper.cpp.

Here is the caller graph for this function:

BlockChain const& dev::test::TestBlockChain::interface ( ) const
inline

Definition at line 122 of file BlockChainHelper.h.

Here is the caller graph for this function:

BlockChain& dev::test::TestBlockChain::interfaceUnsafe ( ) const
inline

Definition at line 123 of file BlockChainHelper.h.

Here is the caller graph for this function:

void dev::test::TestBlockChain::reset ( TestBlock const &  _genesisBlock)

Definition at line 455 of file BlockChainHelper.cpp.

Here is the call graph for this function:

vector< TestBlock > dev::test::TestBlockChain::syncUncles ( vector< TestBlock > const &  _uncles)

Definition at line 506 of file BlockChainHelper.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

TestBlock const& dev::test::TestBlockChain::testGenesis ( ) const
inline

Definition at line 124 of file BlockChainHelper.h.

Here is the caller graph for this function:

TestBlock const& dev::test::TestBlockChain::topBlock ( )
inline

Definition at line 121 of file BlockChainHelper.h.

Here is the caller graph for this function:

Member Data Documentation

std::unique_ptr<BlockChain> dev::test::TestBlockChain::m_blockChain
private

Definition at line 132 of file BlockChainHelper.h.

TestBlock dev::test::TestBlockChain::m_genesisBlock
private

Definition at line 133 of file BlockChainHelper.h.

TestBlock dev::test::TestBlockChain::m_lastBlock
private

Definition at line 134 of file BlockChainHelper.h.

std::unique_ptr<TransientDirectory> dev::test::TestBlockChain::m_tempDirBlockchain
private

Definition at line 135 of file BlockChainHelper.h.

eth::Network dev::test::TestBlockChain::s_sealEngineNetwork = eth::Network::FrontierTest
static

Definition at line 129 of file BlockChainHelper.h.


The documentation for this class was generated from the following files: