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

@@ -1447,10 +1447,10 @@ Json::Value RPCHandler::doTx(Json::Value jvRequest)
{
TransactionMetaSet::pointer set;
if (lgr->getTransactionMeta(txid, set))
{
ret["meta"] = set->getJson(0);
ret["validated"] =
theApp->getOPs().haveLedger(lgr->getLedgerSeq()) &&
(lgr->getLedgerSeq() <= theApp->getLedgerMaster().getValidatedLedger()->getLedgerSeq());
ret["validated"] = theApp->getOPs().isValidated(lgr);
}
}
}