From 3d97ccc34fcbb3814e588dfb3c8bb3516a65e985 Mon Sep 17 00:00:00 2001 From: Arthur Britto Date: Mon, 15 Oct 2012 14:22:55 -0700 Subject: [PATCH] RPC add inLedger to account_tx. --- src/RPCServer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/RPCServer.cpp b/src/RPCServer.cpp index 096c20846..1c88bb208 100644 --- a/src/RPCServer.cpp +++ b/src/RPCServer.cpp @@ -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;