CatapultServer  v0.5.0.1 (Elephant)
TransactionHandlers.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "HandlerTypes.h"
27 #include <unordered_set>
28 
29 namespace catapult { namespace handlers {
30 
32  using UnconfirmedTransactions = std::vector<std::shared_ptr<const model::Transaction>>;
33 
38  const model::TransactionRegistry& registry,
39  const TransactionRangeHandler& transactionRangeHandler);
40 
43 
47 }}
Transaction.h
HandlerUtils.h
catapult::validators::Notification
model::AccountAddressNotification Notification
Definition: AddressValidator.cpp:27
PacketPayloadFactory.h
catapult::ionet::ServerPacketHandlers::registerHandler
void registerHandler(PacketType type, const PacketHandler &handler)
Registers a handler for the specified packet type.
Definition: PacketHandlers.cpp:100
catapult::utils::BaseValue< uint32_t, BlockFeeMultiplier_tag >
catapult::handlers::UnconfirmedTransactions
std::vector< std::shared_ptr< const model::Transaction > > UnconfirmedTransactions
Transactions returned by the unconfirmed transactions retriever.
Definition: TransactionHandlers.h:32
Validators.h
PacketHandlers.h
catapult::ionet::CalculatePacketDataSize
size_t CalculatePacketDataSize(const Packet &packet)
Calculates the data size of packet.
Definition: PacketEntityUtils.h:29
VerifiableEntity.h
forwardsValidation.info
def info(*args)
Definition: forwardsValidation.py:12
ShortHashes
utils::ShortHashesSet ShortHashes
Definition: TransactionHandlers.cpp:47
catapult::utils::ShortHashesSet
std::unordered_set< ShortHash, ShortHashHasher > ShortHashesSet
Definition: ShortHash.h:39
TransactionHandlers.h
catapult::handlers::TransactionRangeHandler
RangeHandler< model::Transaction > TransactionRangeHandler
Prototype for a function that processes a range of transactions.
Definition: HandlerTypes.h:35
catapult::BlockFeeMultiplier
utils::BaseValue< uint32_t, BlockFeeMultiplier_tag > BlockFeeMultiplier
Definition: src/catapult/types.h:91
catapult::handlers::RegisterPullTransactionsHandler
void RegisterPullTransactionsHandler(ionet::ServerPacketHandlers &handlers, const UtRetriever &utRetriever)
Definition: TransactionHandlers.cpp:88
catapult::validators::ValidationResult::Success
Validation succeeded.
MinFeeMultiplier
BlockFeeMultiplier MinFeeMultiplier
Definition: TransactionHandlers.cpp:46
types.h
ShortHash.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::model::TransactionRegistry
A registry of transaction plugins.
Definition: TransactionPlugin.h:98
HandlerTypes.h
catapult::ionet::PacketPayloadFactory::FromEntities
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
catapult::validators::DEFINE_STATELESS_VALIDATOR
DEFINE_STATELESS_VALIDATOR(TransactionFee, [](const auto &notification) { 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;})
IsValid
bool IsValid
Definition: TransactionHandlers.cpp:45
catapult::ionet::ServerPacketHandlers
A collection of packet handlers where there is at most one handler per packet type.
Definition: PacketHandlers.h:62
catapult::handlers::RegisterPushTransactionsHandler
void RegisterPushTransactionsHandler(ionet::ServerPacketHandlers &handlers, const model::TransactionRegistry &registry, const TransactionRangeHandler &transactionRangeHandler)
Definition: TransactionHandlers.cpp:29
RangeTypes.h
catapult::handlers::UtRetriever
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