mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-03 09:25:51 +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);
|
||||
if (!txn)
|
||||
{
|
||||
ret["transactions"].append(it->second.GetHex());
|
||||
}
|
||||
else
|
||||
{
|
||||
txn->setLedger(it->first);
|
||||
ret["transactions"].append(txn->getJson(0));
|
||||
}
|
||||
|
||||
}
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user