diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2012-05-28 16:56:50 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-08-23 18:30:30 +0000 |
commit | bdbfd2329a92ab3fa7ad51e50a9fb0411ec64dae (patch) | |
tree | 5c154348f4e3f9bec7aa6a103c154f5ab71cdba1 /src/rpcrawtransaction.cpp | |
parent | 9c7722b7c5ce49130bd978b932f73b629ce5cebe (diff) |
JSON-RPC: Add "blocktime" and (for wallet transactions) "timereceived" to transaction Object outputs
Diffstat (limited to 'src/rpcrawtransaction.cpp')
-rw-r--r-- | src/rpcrawtransaction.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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)); |