Add NetworkOPs::isValidate functions to check if a ledger is fully validated.

This commit is contained in:
JoelKatz
2013-02-15 19:01:48 -08:00
parent fd009a750a
commit 862dbd7234
4 changed files with 27 additions and 3 deletions

View File

@@ -156,6 +156,9 @@ public:
// Do we have this inclusive range of ledgers in our database
bool haveLedgerRange(uint32 from, uint32 to);
bool haveLedger(uint32 seq);
bool isValidated(uint32 seq);
bool isValidated(uint32 seq, const uint256& hash);
bool isValidated(Ledger::ref l) { return isValidated(l->getLedgerSeq(), l->getHash()); }
SerializedValidation::ref getLastValidation() { return mLastValidation; }
void setLastValidation(SerializedValidation::ref v) { mLastValidation = v; }