CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
28 namespace catapult {
namespace handlers {
32 template<
typename TEntity>
34 return [rangeHandler, ®istry](
const ionet::Packet& packet,
const auto& context) {
35 auto range = ionet::ExtractEntitiesFromPacket<TEntity>(packet, [®istry](
const auto& entity) {
44 rangeHandler({ std::move(range), context.key() });
consumer< model::AnnotatedEntityRange< TEntity > && > RangeHandler
A handler for processing an annotated entity range.
Definition: HandlerTypes.h:29
#define CATAPULT_LOG(SEV)
Writes a log entry to the default logger with SEV severity.
Definition: Logging.h:340
auto CreatePushEntityHandler(const model::TransactionRegistry ®istry, const RangeHandler< TEntity > &rangeHandler)
Definition: HandlerUtils.h:33
A packet header with a data payload.
Definition: Packet.h:32
def warning(*args)
Definition: colorPrint.py:10
bool IsSizeValid(const AggregateTransaction &aggregate, const TransactionRegistry ®istry)
Definition: AggregateTransaction.cpp:38
Definition: AddressExtractionExtension.cpp:28
A registry of transaction plugins.
Definition: TransactionPlugin.h:98