TARAXA
Loading...
Searching...
No Matches
taraxa::final_chain Namespace Reference

Classes

struct  BlockHeader
 
struct  BlockHeaderData
 
class  FinalChain
 main responsibility is blocks execution in EVM, getting data from EVM state More...
 
struct  FinalizationResult
 
struct  NewBlock
 

Typedefs

using Nonce = dev::h64
 
using BlocksBlooms = std::array< LogBloom, c_bloomIndexSize >
 

Functions

h256 hash256 (dev::BytesMap const &_s)
 
 RLP_FIELDS_DEFINE (BlockHeaderData, parent_hash, state_root, transactions_root, receipts_root, log_bloom, gas_used, total_reward) BlockHeader
 
std::string hexPrefixEncode (bytes const &_hexVector, bool _leaf, int _begin=0, int _end=-1)
 
void hash256aux (HexMap const &_s, HexMap::const_iterator _begin, HexMap::const_iterator _end, unsigned _preLen, RLPStream &_rlp)
 
void hash256rlp (HexMap const &_s, HexMap::const_iterator _begin, HexMap::const_iterator _end, unsigned _preLen, RLPStream &_rlp)
 
h256 hash256 (BytesMap const &_s)
 

Variables

static constexpr auto c_bloomIndexSize = 16
 
static constexpr auto c_bloomIndexLevels = 2
 

Function Documentation

◆ hash256() [1/2]

h256 taraxa::final_chain::hash256 ( BytesMap const &  _s)

◆ hash256() [2/2]

h256 taraxa::final_chain::hash256 ( dev::BytesMap const &  _s)

◆ hash256aux()

void taraxa::final_chain::hash256aux ( HexMap const &  _s,
HexMap::const_iterator  _begin,
HexMap::const_iterator  _end,
unsigned  _preLen,
RLPStream &  _rlp 
)

◆ hash256rlp()

void taraxa::final_chain::hash256rlp ( HexMap const &  _s,
HexMap::const_iterator  _begin,
HexMap::const_iterator  _end,
unsigned  _preLen,
RLPStream &  _rlp 
)

◆ hexPrefixEncode()

std::string taraxa::final_chain::hexPrefixEncode ( bytes const &  _hexVector,
bool  _leaf,
int  _begin = 0,
int  _end = -1 
)

◆ RLP_FIELDS_DEFINE()

taraxa::final_chain::RLP_FIELDS_DEFINE ( BlockHeaderData  ,
parent_hash  ,
state_root  ,
transactions_root  ,
receipts_root  ,
log_bloom  ,
gas_used  ,
total_reward   
)