CatapultServer  v0.5.0.1 (Elephant)
TransactionConsumers.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "HashCheckOptions.h"
23 #include "InputUtils.h"
28 
29 namespace catapult { namespace model { class NotificationPublisher; } }
30 
31 namespace catapult { namespace consumers {
32 
36  const GenerationHash& generationHash,
37  const model::TransactionRegistry& transactionRegistry);
38 
43  const chain::TimeSupplier& timeSupplier,
44  const HashCheckOptions& options,
45  const chain::KnownHashPredicate& knownHashPredicate);
46 
50  const std::shared_ptr<const validators::stateless::AggregateEntityValidator>& pValidator,
51  const std::shared_ptr<const validators::ParallelValidationPolicy>& pValidationPolicy,
52  const chain::FailedTransactionSink& failedTransactionSink);
53 
56 
60 }}
InputUtils.h
catapult::disruptor::TransactionConsumer
DisruptorConsumerT< TransactionElements > TransactionConsumer
A transaction disruptor consumer function.
Definition: DisruptorConsumer.h:44
ParallelValidationPolicy.h
catapult::chain::FailedTransactionSink
consumer< const model::Transaction &, const Hash256 &, validators::ValidationResult > FailedTransactionSink
Indicates a transaction with the specified hash failed validation.
Definition: ChainFunctions.h:33
catapult::chain::KnownHashPredicate
predicate< Timestamp, const Hash256 & > KnownHashPredicate
Predicate for determining if a hash is known.
Definition: ChainFunctions.h:36
HashCheckOptions.h
DisruptorConsumer.h
catapult::consumers::NewTransactionsSink
consumer< TransactionInfos && > NewTransactionsSink
Prototype for a function that is called with new transactions.
Definition: TransactionConsumers.h:55
EntityInfo.h
catapult::consumers::CreateTransactionHashCalculatorConsumer
disruptor::TransactionConsumer CreateTransactionHashCalculatorConsumer(const GenerationHash &generationHash, const model::TransactionRegistry &transactionRegistry)
Definition: HashCalculatorConsumer.cpp:103
catapult::consumers::CreateTransactionHashCheckConsumer
disruptor::TransactionConsumer CreateTransactionHashCheckConsumer(const chain::TimeSupplier &timeSupplier, const HashCheckOptions &options, const chain::KnownHashPredicate &knownHashPredicate)
Definition: HashCheckConsumer.cpp:107
ChainFunctions.h
catapult::chain::TimeSupplier
supplier< Timestamp > TimeSupplier
Supplies a timestamp.
Definition: ChainFunctions.h:39
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::GenerationHash
utils::ByteArray< Hash256_Size, GenerationHash_tag > GenerationHash
Definition: src/catapult/types.h:53
catapult::consumers::CreateNewTransactionsConsumer
disruptor::DisruptorConsumer CreateNewTransactionsConsumer(const NewTransactionsSink &newTransactionsSink)
Definition: NewTransactionsConsumer.cpp:79
catapult::disruptor::DisruptorConsumer
DisruptorConsumerT< ConsumerInput > DisruptorConsumer
A disruptor consumer function.
Definition: DisruptorConsumer.h:32
catapult::consumer
std::function< void(TArgs...)> consumer
A consumer function.
Definition: functions.h:35
catapult::consumers::CreateTransactionStatelessValidationConsumer
disruptor::TransactionConsumer CreateTransactionStatelessValidationConsumer(const std::shared_ptr< const validators::stateless::AggregateEntityValidator > &pValidator, const std::shared_ptr< const validators::ParallelValidationPolicy > &pValidationPolicy, const chain::FailedTransactionSink &failedTransactionSink)
Definition: StatelessValidationConsumer.cpp:77