Track last validation so we can detect a missing validation and issue a partial.

This commit is contained in:
JoelKatz
2012-11-13 16:18:19 -08:00
parent 73a0a56f2b
commit 71cf18eee2

View File

@@ -84,8 +84,10 @@ protected:
int mLastCloseProposers, mLastCloseConvergeTime;
uint256 mLastCloseHash;
uint32 mLastCloseTime;
SerializedValidation::pointer mLastValidation;
uint32 mLastValidationTime;
// XXX Split into more locks.
boost::interprocess::interprocess_upgradable_mutex mMonitorLock;
subInfoMapType mSubAccount;
@@ -134,6 +136,9 @@ public:
uint256 getClosedLedgerHash()
{ return mLedgerMaster->getClosedLedger()->getHash(); }
SerializedValidation::ref getLastValidation() { return mLastValidation; }
void setLastValidation(SerializedValidation::ref v) { mLastValidation = v; }
SLE::pointer getSLE(Ledger::pointer lpLedger, const uint256& uHash) { return lpLedger->getSLE(uHash); }
//