TARAXA
graphql::taraxa::DagBlock Class Reference

#include <dag_block.hpp>

Collaboration diagram for graphql::taraxa::DagBlock:

Public Member Functions

 DagBlock (std::shared_ptr<::taraxa::DagBlock > dag_block, std::shared_ptr<::taraxa::final_chain::FinalChain > final_chain, std::shared_ptr<::taraxa::PbftManager > pbft_manager, std::shared_ptr<::taraxa::TransactionManager > transaction_manager, std::function< std::shared_ptr< object::Block >(::taraxa::EthBlockNumber)> get_block_by_num) noexcept
 
response::Value getHash () const noexcept
 
response::Value getPivot () const noexcept
 
std::vector< response::Value > getTips () const noexcept
 
response::Value getLevel () const noexcept
 
std::optional< response::Value > getPbftPeriod () const noexcept
 
std::shared_ptr< object::Account > getAuthor () const noexcept
 
response::Value getTimestamp () const noexcept
 
response::Value getSignature () const noexcept
 
int getVdf () const noexcept
 
int getTransactionCount () const noexcept
 
std::optional< std::vector< std::shared_ptr< object::Transaction > > > getTransactions () const noexcept
 

Private Attributes

std::shared_ptr<::taraxa::DagBlockdag_block_
 
std::shared_ptr<::taraxa::final_chain::FinalChainfinal_chain_
 
std::shared_ptr<::taraxa::PbftManagerpbft_manager_
 
std::shared_ptr<::taraxa::TransactionManagertransaction_manager_
 
std::function< std::shared_ptr< object::Block >::taraxa::EthBlockNumber)> get_block_by_num_
 
std::mutex mu_
 
std::optional< uint64_t > period_
 

Constructor & Destructor Documentation

◆ DagBlock()

graphql::taraxa::DagBlock::DagBlock ( std::shared_ptr<::taraxa::DagBlock dag_block,
std::shared_ptr<::taraxa::final_chain::FinalChain final_chain,
std::shared_ptr<::taraxa::PbftManager pbft_manager,
std::shared_ptr<::taraxa::TransactionManager transaction_manager,
std::function< std::shared_ptr< object::Block >(::taraxa::EthBlockNumber)>  get_block_by_num 
)
explicitnoexcept

Member Function Documentation

◆ getAuthor()

std::shared_ptr< object::Account > graphql::taraxa::DagBlock::getAuthor ( ) const
noexcept

◆ getHash()

response::Value graphql::taraxa::DagBlock::getHash ( ) const
noexcept

◆ getLevel()

response::Value graphql::taraxa::DagBlock::getLevel ( ) const
noexcept

◆ getPbftPeriod()

std::optional< response::Value > graphql::taraxa::DagBlock::getPbftPeriod ( ) const
noexcept

◆ getPivot()

response::Value graphql::taraxa::DagBlock::getPivot ( ) const
noexcept

◆ getSignature()

response::Value graphql::taraxa::DagBlock::getSignature ( ) const
noexcept

◆ getTimestamp()

response::Value graphql::taraxa::DagBlock::getTimestamp ( ) const
noexcept

◆ getTips()

std::vector< response::Value > graphql::taraxa::DagBlock::getTips ( ) const
noexcept

◆ getTransactionCount()

int graphql::taraxa::DagBlock::getTransactionCount ( ) const
noexcept

◆ getTransactions()

std::optional< std::vector< std::shared_ptr< object::Transaction > > > graphql::taraxa::DagBlock::getTransactions ( ) const
noexcept

◆ getVdf()

int graphql::taraxa::DagBlock::getVdf ( ) const
noexcept

Member Data Documentation

◆ dag_block_

std::shared_ptr<::taraxa::DagBlock> graphql::taraxa::DagBlock::dag_block_
private

◆ final_chain_

std::shared_ptr<::taraxa::final_chain::FinalChain> graphql::taraxa::DagBlock::final_chain_
private

◆ get_block_by_num_

std::function<std::shared_ptr<object::Block>::taraxa::EthBlockNumber)> graphql::taraxa::DagBlock::get_block_by_num_
private

◆ mu_

std::mutex graphql::taraxa::DagBlock::mu_
mutableprivate

◆ pbft_manager_

std::shared_ptr<::taraxa::PbftManager> graphql::taraxa::DagBlock::pbft_manager_
private

◆ period_

std::optional<uint64_t> graphql::taraxa::DagBlock::period_
mutableprivate

◆ transaction_manager_

std::shared_ptr<::taraxa::TransactionManager> graphql::taraxa::DagBlock::transaction_manager_
private

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