mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 22:15:52 +00:00
Add a 'validated' field to the 'tx' output. If true, the transaction metadata
came from a fully-validated ledger.
This commit is contained in:
@@ -1448,6 +1448,9 @@ 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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user