From 57c88217a1f3541d8d480c045138f380ca92bf14 Mon Sep 17 00:00:00 2001 From: Rubber-Duckie <53319864+rubber-duckie-au@users.noreply.github.com> Date: Sat, 10 Oct 2020 10:39:14 +1100 Subject: [PATCH] remove duplicate time "time" (pindex->nTime) and "blocktime" (pindex->nTime) are the same value, removing second "time" entry to avoid json syntax errors --- src/rpcrawtransaction.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp index 772da609..6bb96755 100644 --- a/src/rpcrawtransaction.cpp +++ b/src/rpcrawtransaction.cpp @@ -96,7 +96,6 @@ void TxToJSON(const CTransaction& tx, const uint256 hashBlock, Object& entry) if (pindex->IsInMainChain()) { entry.push_back(Pair("confirmations", 1 + nBestHeight - pindex->nHeight)); - entry.push_back(Pair("time", (int64_t)pindex->nTime)); entry.push_back(Pair("blocktime", (int64_t)pindex->nTime)); } else