mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
RPC add inLedger to account_tx.
This commit is contained in:
@@ -2046,9 +2046,14 @@ Json::Value RPCServer::doAccountTransactions(const Json::Value& params)
|
|||||||
{
|
{
|
||||||
Transaction::pointer txn = theApp->getMasterTransaction().fetch(it->second, true);
|
Transaction::pointer txn = theApp->getMasterTransaction().fetch(it->second, true);
|
||||||
if (!txn)
|
if (!txn)
|
||||||
|
{
|
||||||
ret["transactions"].append(it->second.GetHex());
|
ret["transactions"].append(it->second.GetHex());
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
txn->setLedger(it->first);
|
||||||
ret["transactions"].append(txn->getJson(0));
|
ret["transactions"].append(txn->getJson(0));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user