mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Cache for immutable LES's.
This commit is contained in:
@@ -56,6 +56,7 @@ protected:
|
||||
TransactionMetaSet mSet;
|
||||
TransactionEngineParams mParams;
|
||||
int mSeq;
|
||||
bool mImmutable;
|
||||
|
||||
LedgerEntrySet(Ledger::ref ledger, const std::map<uint256, LedgerEntrySetEntry> &e,
|
||||
const TransactionMetaSet& s, int m) : mLedger(ledger), mEntries(e), mSet(s), mParams(tapNONE), mSeq(m) { ; }
|
||||
@@ -72,11 +73,14 @@ protected:
|
||||
|
||||
public:
|
||||
|
||||
LedgerEntrySet(Ledger::ref ledger, TransactionEngineParams tep) : mLedger(ledger), mParams(tep), mSeq(0) { ; }
|
||||
LedgerEntrySet(Ledger::ref ledger, TransactionEngineParams tep, bool immutable = false) :
|
||||
mLedger(ledger), mParams(tep), mSeq(0), mImmutable(immutable) { ; }
|
||||
|
||||
LedgerEntrySet() : mParams(tapNONE), mSeq(0) { ; }
|
||||
LedgerEntrySet() : mParams(tapNONE), mSeq(0), mImmutable(false) { ; }
|
||||
|
||||
// set functions
|
||||
void setImmutable() { mImmutable = true; }
|
||||
bool isImmutable() const { return mImmutable; }
|
||||
LedgerEntrySet duplicate() const; // Make a duplicate of this set
|
||||
void setTo(const LedgerEntrySet&); // Set this set to have the same contents as another
|
||||
void swapWith(LedgerEntrySet&); // Swap the contents of two sets
|
||||
|
||||
Reference in New Issue
Block a user