Make sure we don't use an invalid LES. (Adds asserts.)

This commit is contained in:
JoelKatz
2013-04-13 20:25:06 -07:00
parent 8bf3f4f2e3
commit b7484e9264
2 changed files with 8 additions and 0 deletions

View File

@@ -78,6 +78,8 @@ public:
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
void invalidate() { mLedger.reset(); }
bool isValid() const { return !!mLedger; }
int getSeq() const { return mSeq; }
TransactionEngineParams getParams() const { return mParams; }