|
CatapultServer
v0.5.0.1 (Elephant)
|
A class that creates new blocks. More...

Public Member Functions | |
| Harvester (const cache::CatapultCache &cache, const model::BlockChainConfiguration &config, const Key &beneficiary, const UnlockedAccounts &unlockedAccounts, const BlockGenerator &blockGenerator) | |
| std::unique_ptr< model::Block > | harvest (const model::BlockElement &lastBlockElement, Timestamp timestamp) |
Private Attributes | |
| const cache::CatapultCache & | m_cache |
| const model::BlockChainConfiguration | m_config |
| const Key | m_beneficiary |
| const UnlockedAccounts & | m_unlockedAccounts |
| BlockGenerator | m_blockGenerator |
A class that creates new blocks.
|
explicit |
Creates a harvester around a catapult cache, a block chain config, a beneficiary, an unlocked accounts set (unlockedAccounts) and blockGenerator used to customize block generation.
| std::unique_ptr< model::Block > catapult::harvesting::Harvester::harvest | ( | const model::BlockElement & | lastBlockElement, |
| Timestamp | timestamp | ||
| ) |
Creates the best block (if any) harvested by any unlocked account. Created block will have lastBlockElement as parent and timestamp as timestamp.

|
private |
|
private |
|
private |
|
private |
|
private |