mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Conflicts: src/cpp/ripple/FeatureTable.h src/cpp/ripple/HashedObject.h src/cpp/ripple/NetworkOPs.h
28 lines
682 B
C++
28 lines
682 B
C++
#ifndef __TRANSACTIONMASTER__
|
|
#define __TRANSACTIONMASTER__
|
|
|
|
#include "Transaction.h"
|
|
|
|
// Tracks all transactions in memory
|
|
|
|
class TransactionMaster
|
|
{
|
|
public:
|
|
TransactionMaster();
|
|
|
|
Transaction::pointer fetch(const uint256&, bool checkDisk);
|
|
SerializedTransaction::pointer fetch(SHAMapItem::ref item, SHAMapTreeNode:: TNType type,
|
|
bool checkDisk, uint32 uCommitLedger);
|
|
|
|
// return value: true = we had the transaction already
|
|
bool inLedger(const uint256& hash, uint32 ledger);
|
|
bool canonicalize(Transaction::pointer& txn, bool maybeNew);
|
|
void sweep(void) { mCache.sweep(); }
|
|
|
|
private:
|
|
TaggedCache <uint256, Transaction, UptimeTimerAdapter> mCache;
|
|
};
|
|
|
|
#endif
|
|
// vim:ts=4
|