Skip to content

Commit 712447f

Browse files
alexalex
alex
authored and
alex
committed
RPC: merge gettransaction output format fixes
1 parent 6b91ab1 commit 712447f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/rpcwallet.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,6 @@ Value gettransaction(const Array& params, bool fHelp)
12911291
uint256 hashBlock = 0;
12921292
if (GetTransaction(hash, tx, hashBlock))
12931293
{
1294-
entry.push_back(Pair("txid", hash.GetHex()));
12951294
TxToJSON(tx, 0, entry);
12961295
if (hashBlock == 0)
12971296
entry.push_back(Pair("confirmations", 0));
@@ -1303,11 +1302,7 @@ Value gettransaction(const Array& params, bool fHelp)
13031302
{
13041303
CBlockIndex* pindex = (*mi).second;
13051304
if (pindex->IsInMainChain())
1306-
{
13071305
entry.push_back(Pair("confirmations", 1 + nBestHeight - pindex->nHeight));
1308-
entry.push_back(Pair("txntime", (boost::int64_t)tx.nTime));
1309-
entry.push_back(Pair("time", (boost::int64_t)pindex->nTime));
1310-
}
13111306
else
13121307
entry.push_back(Pair("confirmations", 0));
13131308
}

0 commit comments

Comments
 (0)