mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Set the 'validated' field a bit more logically.
This commit is contained in:
@@ -1584,8 +1584,12 @@ Json::Value RPCHandler::doAccountTransactions(Json::Value jvRequest)
|
|||||||
if (it->second)
|
if (it->second)
|
||||||
{
|
{
|
||||||
obj["meta"] = it->second->getJson(0);
|
obj["meta"] = it->second->getJson(0);
|
||||||
|
|
||||||
uint32 s = it->second->getLgrSeq();
|
uint32 s = it->second->getLgrSeq();
|
||||||
obj["validated"] = (s <= vl) && theApp->getOPs().haveLedger(s);
|
if (s > vl)
|
||||||
|
obj["validated"] = false;
|
||||||
|
else if (theApp->getOPs().haveLedger(s))
|
||||||
|
obj["validated"] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret["transactions"].append(obj);
|
ret["transactions"].append(obj);
|
||||||
|
|||||||
Reference in New Issue
Block a user