TARAXA
taraxa::final_chain Namespace Reference

Classes

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

Typedefs

using LogBloom = dev::h2048
 
using LogBlooms = std::vector< LogBloom >
 
using Nonce = dev::h64
 
using BlocksBlooms = std::array< LogBloom, c_bloomIndexSize >
 
using LogEntries = std::vector< LogEntry >
 
using TransactionReceipts = std::vector< TransactionReceipt >
 

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)
 

Variables

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

Function Documentation

◆ hash256()

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   
)