CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace cache {
class MemoryUtCache; }
27 namespace harvesting {
class HarvestingUtFacade; }
30 namespace catapult {
namespace harvesting {
void CalculateBlockTransactionsHash(const std::vector< const TransactionInfo * > &transactionInfos, Hash256 &blockTransactionsHash)
Calculates the block transactions hash of transactionInfos into blockTransactionsHash.
Definition: BlockUtils.cpp:42
SortDirection
Definition: TransactionsInfoSupplier.cpp:33
Choose transactions with highest fees.
std::vector< std::shared_ptr< const Transaction > > Transactions
Container of transactions.
Definition: BlockUtils.h:71
Choose transactions with lowest fees.
A transaction and its associated metadata.
Definition: EntityInfo.h:104
model::Transactions Transactions
Transactions (shared pointers) (ordered).
Definition: TransactionsInfoSupplier.h:38
BlockFeeMultiplier CalculateTransactionMaxFeeMultiplier(const Transaction &transaction)
Calculates the maximum fee multiplier for transaction.
Definition: FeeUtils.cpp:30
std::function< TransactionsInfo(HarvestingUtFacade &, uint32_t)> TransactionsInfoSupplier
Supplies a transactions info composed of a maximum number of transactions for a block given a harvest...
Definition: TransactionsInfoSupplier.h:48
Hash256 TransactionsHash
Aggregate transactions hash.
Definition: TransactionsInfoSupplier.h:44
Information about transactions.
Definition: TransactionsInfoSupplier.h:33
utils::BaseValue< uint32_t, BlockFeeMultiplier_tag > BlockFeeMultiplier
Definition: src/catapult/types.h:91
TransactionsInfoSupplier CreateTransactionsInfoSupplier(model::TransactionSelectionStrategy strategy, const cache::MemoryUtCache &utCache)
Creates a default transactions info supplier aroundutCache for specified transaction strategy.
Definition: TransactionsInfoSupplier.cpp:117
BlockFeeMultiplier FeeMultiplier
Optimal fee multiplier.
Definition: TransactionsInfoSupplier.h:35
TransactionSelectionStrategy
Strategy for selecting transactions.
Definition: TransactionSelectionStrategy.h:27
Cache for all unconfirmed transactions.
Definition: MemoryUtCache.h:81
std::shared_ptr< TEntity > pEntity
Entity pointer.
Definition: EntityInfo.h:45
Definition: AddressExtractionExtension.cpp:28
MemoryUtCacheView view() const
Gets a read only view based on this cache.
Definition: MemoryUtCache.cpp:223
std::vector< Hash256 > TransactionHashes
Transaction hashes (ordered).
Definition: TransactionsInfoSupplier.h:41
Base class for wrappers of byte array types, to provide some type-safety.
Definition: ByteArray.h:29
Facade around unconfirmed transactions cache and updater.
Definition: HarvestingUtFacadeFactory.h:30
std::vector< const model::TransactionInfo * > GetFirstTransactionInfoPointers(const MemoryUtCacheView &utCacheView, uint32_t count)
Definition: MemoryUtCacheUtils.cpp:25