CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace subscribers {
28 template<
typename TPtChangeSubscriber = cache::PtChangeSubscriber>
35 this->
forEach([&transactionInfos](
auto& subscriber) { subscriber.notifyAddPartials(transactionInfos); });
42 this->
forEach([&parentTransactionInfo, &signer, &signature](
auto& subscriber) {
43 subscriber.notifyAddCosignature(parentTransactionInfo, signer, signature);
48 this->
forEach([&transactionInfos](
auto& subscriber) { subscriber.notifyRemovePartials(transactionInfos); });
52 this->
forEach([](
auto& subscriber) { subscriber.flush(); });
Partial transactions change subscriber.
Definition: PtChangeSubscriber.h:28
void notifyAddPartials(const TransactionInfos &transactionInfos) override
Definition: AggregatePtChangeSubscriber.h:34
A transaction and its associated metadata.
Definition: EntityInfo.h:104
void flush() override
Flushes all pending partial transactions changes.
Definition: AggregatePtChangeSubscriber.h:51
void notifyAddCosignature(const model::TransactionInfo &parentTransactionInfo, const Key &signer, const Signature &signature) override
Indicates a cosignature (composed of signer and signature) was added to a partial transaction (parent...
Definition: AggregatePtChangeSubscriber.h:38
model::TransactionInfosSet TransactionInfos
Definition: PtChangeSubscriber.h:30
void forEach(TAction action) const
Definition: BasicAggregateSubscriber.h:38
Basic aggregate subscriber.
Definition: BasicAggregateSubscriber.h:29
Aggregate partial transactions change subscriber.
Definition: AggregatePtChangeSubscriber.h:29
void notifyRemovePartials(const TransactionInfos &transactionInfos) override
Definition: AggregatePtChangeSubscriber.h:47
Definition: AddressExtractionExtension.cpp:28