CatapultServer  v0.5.0.1 (Elephant)
catapult::harvesting::HarvestingUtFacade Class Reference

Facade around unconfirmed transactions cache and updater. More...

Classes

class  Impl
 

Public Member Functions

 HarvestingUtFacade (Timestamp blockTime, const cache::CatapultCache &cache, const model::BlockChainConfiguration &blockChainConfig, const chain::ExecutionConfiguration &executionConfig)
 Creates a facade around blockTime, cache, blockChainConfig and executionConfig. More...
 
 ~HarvestingUtFacade ()
 Destroys the facade. More...
 
Height height () const
 Gets locked height. More...
 
size_t size () const
 Gets the number of successfully applied transactions. More...
 
const std::vector< model::TransactionInfo > & transactionInfos () const
 Gets all successfully applied transactions. More...
 
bool apply (const model::TransactionInfo &transactionInfo)
 Attempts to apply transactionInfo to the cache. More...
 
void unapply ()
 Unapplies last successfully applied transaction. More...
 
std::unique_ptr< model::Blockcommit (const model::BlockHeader &blockHeader)
 Commits all transactions into a block with specified seed header (blockHeader). More...
 

Private Attributes

std::vector< model::TransactionInfom_transactionInfos
 
std::unique_ptr< Implm_pImpl
 

Detailed Description

Facade around unconfirmed transactions cache and updater.

Constructor & Destructor Documentation

◆ HarvestingUtFacade()

catapult::harvesting::HarvestingUtFacade::HarvestingUtFacade ( Timestamp  blockTime,
const cache::CatapultCache cache,
const model::BlockChainConfiguration blockChainConfig,
const chain::ExecutionConfiguration executionConfig 
)

Creates a facade around blockTime, cache, blockChainConfig and executionConfig.

◆ ~HarvestingUtFacade()

catapult::harvesting::HarvestingUtFacade::~HarvestingUtFacade ( )
default

Destroys the facade.

Member Function Documentation

◆ apply()

bool catapult::harvesting::HarvestingUtFacade::apply ( const model::TransactionInfo transactionInfo)

Attempts to apply transactionInfo to the cache.

Here is the call graph for this function:

◆ commit()

std::unique_ptr< model::Block > catapult::harvesting::HarvestingUtFacade::commit ( const model::BlockHeader blockHeader)

Commits all transactions into a block with specified seed header (blockHeader).

Here is the call graph for this function:

◆ height()

Height catapult::harvesting::HarvestingUtFacade::height ( ) const

Gets locked height.

Here is the caller graph for this function:

◆ size()

size_t catapult::harvesting::HarvestingUtFacade::size ( ) const

Gets the number of successfully applied transactions.

◆ transactionInfos()

const std::vector< model::TransactionInfo > & catapult::harvesting::HarvestingUtFacade::transactionInfos ( ) const

Gets all successfully applied transactions.

◆ unapply()

void catapult::harvesting::HarvestingUtFacade::unapply ( )

Unapplies last successfully applied transaction.

Member Data Documentation

◆ m_pImpl

std::unique_ptr<Impl> catapult::harvesting::HarvestingUtFacade::m_pImpl
private

◆ m_transactionInfos

std::vector<model::TransactionInfo> catapult::harvesting::HarvestingUtFacade::m_transactionInfos
private

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