mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-20 02:55:50 +00:00
25 lines
454 B
C++
25 lines
454 B
C++
#ifndef __TRANSACTIONMASTER__
|
|
#define __TRANSACTIONMASTER__
|
|
|
|
#include "Transaction.h"
|
|
#include "TaggedCache.h"
|
|
|
|
// Tracks all transactions in memory
|
|
|
|
class TransactionMaster
|
|
{
|
|
protected:
|
|
TaggedCache<uint256, Transaction> mCache;
|
|
|
|
public:
|
|
|
|
TransactionMaster();
|
|
|
|
Transaction::pointer fetch(const uint256&, bool checkDisk);
|
|
|
|
// return value: true = we had the transaction already
|
|
bool canonicalize(Transaction::pointer& txn, bool maybeNew);
|
|
};
|
|
|
|
#endif
|