RPC: merge gettransaction output format fixes
authoralex <alex@alex-VirtualBox.(none)>
Wed, 6 Nov 2013 17:12:28 +0000 (21:12 +0400)
committeralex <alex@alex-VirtualBox.(none)>
Wed, 6 Nov 2013 17:12:28 +0000 (21:12 +0400)
src/rpcwallet.cpp

index b61581e..cdbc5d4 100644 (file)
@@ -1291,7 +1291,6 @@ Value gettransaction(const Array& params, bool fHelp)
         uint256 hashBlock = 0;
         if (GetTransaction(hash, tx, hashBlock))
         {
-            entry.push_back(Pair("txid", hash.GetHex()));
             TxToJSON(tx, 0, entry);
             if (hashBlock == 0)
                 entry.push_back(Pair("confirmations", 0));
@@ -1303,11 +1302,7 @@ Value gettransaction(const Array& params, bool fHelp)
                 {
                     CBlockIndex* pindex = (*mi).second;
                     if (pindex->IsInMainChain())
-                    {
                         entry.push_back(Pair("confirmations", 1 + nBestHeight - pindex->nHeight));
-                        entry.push_back(Pair("txntime", (boost::int64_t)tx.nTime));
-                        entry.push_back(Pair("time", (boost::int64_t)pindex->nTime));
-                    }
                     else
                         entry.push_back(Pair("confirmations", 0));
                 }