CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
27 #include <unordered_set>
29 namespace catapult {
namespace handlers {
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
void registerHandler(PacketType type, const PacketHandler &handler)
Registers a handler for the specified packet type.
Definition: PacketHandlers.cpp:100
std::vector< std::shared_ptr< const model::Transaction > > UnconfirmedTransactions
Transactions returned by the unconfirmed transactions retriever.
Definition: TransactionHandlers.h:32
size_t CalculatePacketDataSize(const Packet &packet)
Calculates the data size of packet.
Definition: PacketEntityUtils.h:29
def info(*args)
Definition: forwardsValidation.py:12
utils::ShortHashesSet ShortHashes
Definition: TransactionHandlers.cpp:47
std::unordered_set< ShortHash, ShortHashHasher > ShortHashesSet
Definition: ShortHash.h:39
RangeHandler< model::Transaction > TransactionRangeHandler
Prototype for a function that processes a range of transactions.
Definition: HandlerTypes.h:35
utils::BaseValue< uint32_t, BlockFeeMultiplier_tag > BlockFeeMultiplier
Definition: src/catapult/types.h:91
void RegisterPullTransactionsHandler(ionet::ServerPacketHandlers &handlers, const UtRetriever &utRetriever)
Definition: TransactionHandlers.cpp:88
BlockFeeMultiplier MinFeeMultiplier
Definition: TransactionHandlers.cpp:46
Definition: AddressExtractionExtension.cpp:28
A registry of transaction plugins.
Definition: TransactionPlugin.h:98
static PacketPayload FromEntities(PacketType type, const std::vector< std::shared_ptr< TEntity >> &entities)
Creates a packet payload with the specified packet type around multiple entities.
Definition: PacketPayloadFactory.h:37
DEFINE_STATELESS_VALIDATOR(TransactionFee, [](const auto ¬ification) { if(notification.Fee > notification.MaxFee) return Failure_Core_Invalid_Transaction_Fee;constexpr auto Max_Raw_Block_Fee_Multiplier=static_cast< uint64_t >(std::numeric_limits< BlockFeeMultiplier::ValueType >::max());return notification.MaxFee.unwrap() > Max_Raw_Block_Fee_Multiplier *notification.TransactionSize ? Failure_Core_Invalid_Transaction_Fee :ValidationResult::Success;})
bool IsValid
Definition: TransactionHandlers.cpp:45
A collection of packet handlers where there is at most one handler per packet type.
Definition: PacketHandlers.h:62
void RegisterPushTransactionsHandler(ionet::ServerPacketHandlers &handlers, const model::TransactionRegistry ®istry, const TransactionRangeHandler &transactionRangeHandler)
Definition: TransactionHandlers.cpp:29
std::function< UnconfirmedTransactions(BlockFeeMultiplier, const utils::ShortHashesSet &)> UtRetriever
Prototype for a function that retrieves unconfirmed transactions given a set of short hashes.
Definition: TransactionHandlers.h:42