CatapultServer
v0.5.0.1 (Elephant)
|
uint32_t NumTransactions
Number of transactions.
Definition: TransactionFeeMaximizer.h:31
void apply(const model::TransactionInfo &transactionInfo)
Applies transactionInfo to the maximizer to include in the best fee policy calculation.
Definition: TransactionFeeMaximizer.cpp:36
BlockFeeMultiplier FeeMultiplier
Fee multiplier.
Definition: TransactionFeeMaximizer.h:34
utils::BaseValue< uint64_t, Amount_tag > Amount
Definition: src/catapult/types.h:76
FeePolicy m_best
Definition: TransactionFeeMaximizer.h:52
DEFINE_OBSERVER(AccountAddress, model::AccountAddressNotification, [](const auto ¬ification, const auto &context) { DefaultAccountVisitor visitor(context);visitor.visit(notification.Address);})
A transaction and its associated metadata.
Definition: EntityInfo.h:104
const FeePolicy & best() const
Gets the best fee policy identified.
Definition: TransactionFeeMaximizer.cpp:32
BlockFeeMultiplier CalculateTransactionMaxFeeMultiplier(const Transaction &transaction)
Calculates the maximum fee multiplier for transaction.
Definition: FeeUtils.cpp:30
utils::BaseValue< uint32_t, BlockFeeMultiplier_tag > BlockFeeMultiplier
Definition: src/catapult/types.h:91
FeePolicy m_current
Definition: TransactionFeeMaximizer.h:51
void UpdateActivity(const Key &publicKey, const observers::ObserverContext &context, const ActivityBucketConsumer &commitAction, const ActivityBucketConsumer &rollbackAction)
Definition: ActivityObserverUtils.cpp:36
#define CATAPULT_THROW_INVALID_ARGUMENT(MESSAGE)
Macro used to throw a catapult invalid argument.
Definition: exceptions.h:179
std::shared_ptr< TEntity > pEntity
Entity pointer.
Definition: EntityInfo.h:45
Definition: AddressExtractionExtension.cpp:28
Amount BaseFee
Base fee.
Definition: TransactionFeeMaximizer.h:37
Amount CalculateTransactionFee(BlockFeeMultiplier feeMultiplier, const Transaction &transaction)
Calculates the fee for transaction contained in block with feeMultiplier.
Definition: FeeUtils.cpp:26
Maximizes fees given a stream of transaction infos.
Definition: TransactionFeeMaximizer.h:41
Information about a fee policy.
Definition: TransactionFeeMaximizer.h:29