CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
26 namespace catapult {
namespace cache {
39 virtual std::vector<model::DetachedTransactionInfo>
prune(
Timestamp timestamp) = 0;
56 return modifier().
add(parentHash, signer, signature);
BasicTransactionsCacheModifierProxy(std::unique_ptr< PtCacheModifier > &&pModifier)
Creates a transactions cache modifier around pModifier.
Definition: BasicTransactionsCache.h:53
std::vector< model::DetachedTransactionInfo > prune(Timestamp timestamp)
Removes all partial transactions that have deadlines at or before the given timestamp.
Definition: PtCache.h:60
std::function< bool(TArgs...)> predicate
A predicate function.
Definition: functions.h:31
bool add(const model::DetachedTransactionInfo &transactionInfo)
Definition: BasicTransactionsCache.h:65
PtCacheModifier & modifier()
Gets the modifier.
Definition: BasicTransactionsCache.h:76
Definition: BasicTransactionsCache.h:50
An interface for modifying a transactions cache.
Definition: BasicTransactionsCache.h:30
std::vector< model::DetachedTransactionInfo > prune(const predicate< const Hash256 & > &hashPredicate)
Removes all partial transactions for which hashPredicate returns true.
Definition: PtCache.h:65
Definition: AddressExtractionExtension.cpp:28
An interface for caching transactions.
Definition: BasicTransactionsCache.h:91
An interface for caching partial transactions.
Definition: PtCache.h:71
virtual model::DetachedTransactionInfo add(const Hash256 &parentHash, const Key &signer, const Signature &signature)=0
Adds a cosignature (composed of signer and signature) for a partial transaction with hash parentHash ...
model::DetachedTransactionInfo add(const Hash256 &parentHash, const Key &signer, const Signature &signature)
Adds a cosignature (composed of signer and signature) for a partial transaction with hash parentHash ...
Definition: PtCache.h:55
virtual std::vector< model::DetachedTransactionInfo > prune(Timestamp timestamp)=0
Removes all partial transactions that have deadlines at or before the given timestamp.
Definition: EntityInfo.h:77