CatapultServer  v0.5.0.1 (Elephant)
HarvesterBlockGenerator.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "catapult/model/Block.h"
24 
25 namespace catapult {
26  namespace cache { class MemoryUtCache; }
27  namespace harvesting { class HarvestingUtFacadeFactory; }
28 }
29 
30 namespace catapult { namespace harvesting {
31 
33  using BlockGenerator = std::function<std::unique_ptr<model::Block> (const model::BlockHeader&, uint32_t)>;
34 
38  const HarvestingUtFacadeFactory& utFacadeFactory,
39  const cache::MemoryUtCache& utCache);
40 }}
Block.h
CATAPULT_LOG
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
Parser.debug
def debug(*args)
Definition: Parser.py:46
colorPrint.warning
def warning(*args)
Definition: colorPrint.py:10
catapult::Height
utils::BaseValue< uint64_t, Height_tag > Height
Definition: src/catapult/types.h:85
catapult::model::BlockHeader
Binary layout for a block header.
Definition: Block.h:34
catapult::harvesting::BlockGenerator
std::function< std::unique_ptr< model::Block >(const model::BlockHeader &, uint32_t)> BlockGenerator
Generates a block from a seed block header given a maximum number of transactions.
Definition: HarvesterBlockGenerator.h:33
TransactionSelectionStrategy.h
TransactionsInfoSupplier.h
catapult::harvesting::HarvestingUtFacadeFactory
Factory for creating unconfirmed transactions facades.
Definition: HarvestingUtFacadeFactory.h:71
catapult::harvesting::CreateTransactionsInfoSupplier
TransactionsInfoSupplier CreateTransactionsInfoSupplier(model::TransactionSelectionStrategy strategy, const cache::MemoryUtCache &utCache)
Creates a default transactions info supplier aroundutCache for specified transaction strategy.
Definition: TransactionsInfoSupplier.cpp:117
HarvestingUtFacadeFactory.h
catapult::model::TransactionSelectionStrategy
TransactionSelectionStrategy
Strategy for selecting transactions.
Definition: TransactionSelectionStrategy.h:27
catapult::cache::MemoryUtCache
Cache for all unconfirmed transactions.
Definition: MemoryUtCache.h:81
catapult
Definition: AddressExtractionExtension.cpp:28
HarvesterBlockGenerator.h
catapult::harvesting::HarvestingUtFacadeFactory::create
std::unique_ptr< HarvestingUtFacade > create(Timestamp blockTime) const
Creates a facade for applying transactions at a given block time (blockTime).
Definition: HarvestingUtFacadeFactory.cpp:229
catapult::harvesting::CreateHarvesterBlockGenerator
BlockGenerator CreateHarvesterBlockGenerator(model::TransactionSelectionStrategy strategy, const HarvestingUtFacadeFactory &utFacadeFactory, const cache::MemoryUtCache &utCache)
Creates a default block generator around utFacadeFactory and utCache for specified transaction strate...
Definition: HarvesterBlockGenerator.cpp:43