RPC add inLedger to account_tx.

This commit is contained in:
Arthur Britto
2012-10-15 14:22:55 -07:00
parent 42d7813046
commit 3d97ccc34f

View File

@@ -2046,9 +2046,14 @@ Json::Value RPCServer::doAccountTransactions(const Json::Value& params)
{
Transaction::pointer txn = theApp->getMasterTransaction().fetch(it->second, true);
if (!txn)
{
ret["transactions"].append(it->second.GetHex());
}
else
{
txn->setLedger(it->first);
ret["transactions"].append(txn->getJson(0));
}
}
return ret;