mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-25 21:45:52 +00:00
Add NetworkOPs::isValidate functions to check if a ledger is fully validated.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user