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

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. More...

#include <BlockChainLoader.h>

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

Public Member Functions

 BlockChainLoader (Json::Value const &_json, eth::Network _sealEngineNetwork=eth::Network::TransitionnetTest)
 
eth::BlockChain const & bc () const
 
eth::State const & state () const
 
eth::Block const & block () const
 

Private Attributes

TransientDirectory m_dir
 
std::unique_ptr< eth::BlockChainm_bc
 
eth::Block m_block
 

Detailed Description

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.

Definition at line 39 of file BlockChainLoader.h.

Constructor & Destructor Documentation

BlockChainLoader::BlockChainLoader ( Json::Value const &  _json,
eth::Network  _sealEngineNetwork = eth::Network::TransitionnetTest 
)

Definition at line 32 of file BlockChainLoader.cpp.

Here is the call graph for this function:

Member Function Documentation

eth::BlockChain const& dev::test::BlockChainLoader::bc ( ) const
inline

Definition at line 43 of file BlockChainLoader.h.

Here is the caller graph for this function:

eth::Block const& dev::test::BlockChainLoader::block ( ) const
inline

Definition at line 45 of file BlockChainLoader.h.

Here is the caller graph for this function:

eth::State const& dev::test::BlockChainLoader::state ( ) const
inline

Definition at line 44 of file BlockChainLoader.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

std::unique_ptr<eth::BlockChain> dev::test::BlockChainLoader::m_bc
private

Definition at line 49 of file BlockChainLoader.h.

eth::Block dev::test::BlockChainLoader::m_block
private

Definition at line 50 of file BlockChainLoader.h.

TransientDirectory dev::test::BlockChainLoader::m_dir
private

Definition at line 48 of file BlockChainLoader.h.


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