CatapultServer
v0.5.0.1 (Elephant)
|
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::Block > | commit (const model::BlockHeader &blockHeader) |
Commits all transactions into a block with specified seed header (blockHeader). More... | |
Private Attributes | |
std::vector< model::TransactionInfo > | m_transactionInfos |
std::unique_ptr< Impl > | m_pImpl |
Facade around unconfirmed transactions cache and updater.
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.
|
default |
Destroys the facade.
bool catapult::harvesting::HarvestingUtFacade::apply | ( | const model::TransactionInfo & | transactionInfo | ) |
Attempts to apply transactionInfo to the cache.
std::unique_ptr< model::Block > catapult::harvesting::HarvestingUtFacade::commit | ( | const model::BlockHeader & | blockHeader | ) |
Commits all transactions into a block with specified seed header (blockHeader).
Height catapult::harvesting::HarvestingUtFacade::height | ( | ) | const |
Gets locked height.
size_t catapult::harvesting::HarvestingUtFacade::size | ( | ) | const |
Gets the number of successfully applied transactions.
const std::vector< model::TransactionInfo > & catapult::harvesting::HarvestingUtFacade::transactionInfos | ( | ) | const |
Gets all successfully applied transactions.
void catapult::harvesting::HarvestingUtFacade::unapply | ( | ) |
Unapplies last successfully applied transaction.
|
private |
|
private |