Set the 'validated' field a bit more logically.

This commit is contained in:
JoelKatz
2013-02-17 17:10:17 -08:00
parent 72ee15afe9
commit 676fb5462a

View File

@@ -1584,8 +1584,12 @@ Json::Value RPCHandler::doAccountTransactions(Json::Value jvRequest)
if (it->second)
{
obj["meta"] = it->second->getJson(0);
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);