From bdbfd2329a92ab3fa7ad51e50a9fb0411ec64dae Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Mon, 28 May 2012 16:56:50 +0000 Subject: JSON-RPC: Add "blocktime" and (for wallet transactions) "timereceived" to transaction Object outputs --- src/rpcrawtransaction.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/rpcrawtransaction.cpp') diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp index 29b9d072d6..fefefc7d62 100644 --- a/src/rpcrawtransaction.cpp +++ b/src/rpcrawtransaction.cpp @@ -93,6 +93,7 @@ TxToJSON(const CTransaction& tx, const uint256 hashBlock, Object& entry) { entry.push_back(Pair("confirmations", 1 + nBestHeight - pindex->nHeight)); entry.push_back(Pair("time", (boost::int64_t)pindex->nTime)); + entry.push_back(Pair("blocktime", (boost::int64_t)pindex->nTime)); } else entry.push_back(Pair("confirmations", 0)); -- cgit v1.2.3