diff options
author | jtimon <jtimon@monetize.io> | 2014-06-28 23:36:06 +0200 |
---|---|---|
committer | jtimon <jtimon@monetize.io> | 2014-07-07 10:20:28 +0200 |
commit | 209377a7cb5a9ea5d724faf94846ee5bacd289e7 (patch) | |
tree | 41a311498d0758dfb108bc5d03037e5b08bb654f /src/rpcrawtransaction.cpp | |
parent | 6654a87e7b2bd5d1d4a5c0af70d0468dfde300a9 (diff) |
Use GetBlockTime() more
Diffstat (limited to 'src/rpcrawtransaction.cpp')
-rw-r--r-- | src/rpcrawtransaction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpcrawtransaction.cpp b/src/rpcrawtransaction.cpp index 9771f8e685..45a227d1dc 100644 --- a/src/rpcrawtransaction.cpp +++ b/src/rpcrawtransaction.cpp @@ -99,8 +99,8 @@ void TxToJSON(const CTransaction& tx, const uint256 hashBlock, Object& entry) if (chainActive.Contains(pindex)) { entry.push_back(Pair("confirmations", 1 + chainActive.Height() - pindex->nHeight)); - entry.push_back(Pair("time", (int64_t)pindex->nTime)); - entry.push_back(Pair("blocktime", (int64_t)pindex->nTime)); + entry.push_back(Pair("time", pindex->GetBlockTime())); + entry.push_back(Pair("blocktime", pindex->GetBlockTime())); } else entry.push_back(Pair("confirmations", 0)); |