CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
31 namespace chain {
struct CatapultState; }
32 namespace io {
class BlockStorageCache; }
33 namespace model {
class TransactionRegistry; }
34 namespace utils {
class TimeSpan; }
37 namespace catapult {
namespace consumers {
43 const model::TransactionRegistry& transactionRegistry);
53 uint32_t maxChainSize,
54 const utils::TimeSpan& maxBlockFutureTime,
64 const std::shared_ptr<const validators::stateless::AggregateEntityValidator>& pValidator,
65 const std::shared_ptr<const validators::ParallelValidationPolicy>& pValidationPolicy,
77 uint32_t maxRollbackBlocks,
disruptor::ConstBlockConsumer CreateBlockChainCheckConsumer(uint32_t maxChainSize, const utils::TimeSpan &maxBlockFutureTime, const chain::TimeSupplier &timeSupplier)
Definition: BlockChainCheckConsumer.cpp:91
InputSource
Possible consumer input sources.
Definition: InputSource.h:42
disruptor::ConstBlockConsumer CreateBlockStatelessValidationConsumer(const std::shared_ptr< const validators::stateless::AggregateEntityValidator > &pValidator, const std::shared_ptr< const validators::ParallelValidationPolicy > &pValidationPolicy, const RequiresValidationPredicate &requiresValidationPredicate)
Definition: StatelessValidationConsumer.cpp:65
DisruptorConsumerT< const BlockElements > ConstBlockConsumer
A const block disruptor consumer function.
Definition: DisruptorConsumer.h:41
disruptor::DisruptorConsumer CreateBlockChainSyncConsumer(cache::CatapultCache &cache, state::CatapultState &state, io::BlockStorageCache &storage, uint32_t maxRollbackBlocks, const BlockChainSyncHandlers &handlers)
Definition: BlockChainSyncConsumer.cpp:296
DisruptorConsumerT< const ConsumerInput > ConstDisruptorConsumer
A const disruptor consumer function.
Definition: DisruptorConsumer.h:35
disruptor::DisruptorConsumer CreateNewBlockConsumer(const NewBlockSink &newBlockSink, disruptor::InputSource sinkSourceMask)
disruptor::BlockConsumer CreateBlockHashCalculatorConsumer(const GenerationHash &generationHash, const model::TransactionRegistry &transactionRegistry)
Definition: HashCalculatorConsumer.cpp:72
predicate< BasicEntityType, Timestamp, const Hash256 & > MatchingEntityPredicate
Predicate for evaluating a timestamp, a hash and an entity type.
Definition: Elements.h:83
disruptor::ConstBlockConsumer CreateBlockHashCheckConsumer(const chain::TimeSupplier &timeSupplier, const HashCheckOptions &options)
Definition: HashCheckConsumer.cpp:56
Definition: BlockStorageCache.h:97
Handlers used by the block chain sync consumer.
Definition: BlockChainSyncHandlers.h:74
Central cache holding all sub caches.
Definition: CatapultCache.h:40
Stateful catapult information.
Definition: CatapultState.h:27
DisruptorConsumerT< BlockElements > BlockConsumer
A block disruptor consumer function.
Definition: DisruptorConsumer.h:38
disruptor::ConstDisruptorConsumer CreateBlockChainSyncCleanupConsumer(const std::string &dataDirectory)
Creates a consumer that cleans up temporary state produced by the block chain sync consumer given dat...
Definition: BlockChainSyncCleanupConsumer.cpp:29
supplier< Timestamp > TimeSupplier
Supplies a timestamp.
Definition: ChainFunctions.h:39
Definition: AddressExtractionExtension.cpp:28
utils::ByteArray< Hash256_Size, GenerationHash_tag > GenerationHash
Definition: src/catapult/types.h:53
consumer< const std::shared_ptr< const model::Block > & > NewBlockSink
Prototype for a function that is called with a new block.
Definition: BlockConsumers.h:84
DisruptorConsumerT< ConsumerInput > DisruptorConsumer
A disruptor consumer function.
Definition: DisruptorConsumer.h:32
model::MatchingEntityPredicate RequiresValidationPredicate
Predicate for checking whether or not an entity requires validation.
Definition: BlockConsumers.h:58
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35