CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
28 class NotificationSubscriber;
29 class TransactionRegistry;
33 namespace catapult {
namespace model {
void PublishNotifications(const EmbeddedTransaction &transaction, NotificationSubscriber &sub)
Sends all notifications from transaction to sub.
Definition: EmbeddedTransaction.cpp:61
DEFINE_STATEFUL_VALIDATOR(EligibleHarvester, [](const auto ¬ification, const auto &context) { cache::ImportanceView view(context.Cache.template sub< cache::AccountStateCache >());return view.canHarvest(notification.Signer, context.Height) ? ValidationResult::Success :Failure_Core_Block_Harvester_Ineligible;})
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
A notification subscriber.
Definition: NotificationSubscriber.h:27
def warning(*args)
Definition: colorPrint.py:10
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
Key Signer
Entity signer's public key.
Definition: EntityBody.h:36
std::ostream & operator<<(std::ostream &out, const EmbeddedTransaction &transaction)
Insertion operator for outputting transaction to out.
Definition: EmbeddedTransaction.cpp:28
uint8_t EntityVersion() const
Returns version of an entity.
Definition: EntityBody.h:50
Binary layout for an embedded transaction (non-verifiable).
Definition: EmbeddedTransaction.h:38
bool IsSizeValid(const AggregateTransaction &aggregate, const TransactionRegistry ®istry)
Definition: AggregateTransaction.cpp:38
Binary layout for an entity body.
Definition: EntityBody.h:33
Notification of use of an account public key.
Definition: Notifications.h:75
Definition: AddressExtractionExtension.cpp:28
A registry of transaction plugins.
Definition: TransactionPlugin.h:98
virtual void notify(const Notification ¬ification)=0
Notifies the subscriber of notification.
uint32_t Size
Entity size.
Definition: SizePrefixedEntity.h:33
EntityType Type
Entity type.
Definition: EntityBody.h:42