aboutsummaryrefslogtreecommitdiff
path: root/src/rpcblockchain.cpp
diff options
context:
space:
mode:
authorKamil Domanski <kdomanski@kdemail.net>2014-05-06 14:58:43 +0200
committerKamil Domanski <kdomanski@kdemail.net>2014-05-13 11:42:00 +0200
commitd56e30ca898469cf5988b0fc9847ec79b43be49c (patch)
tree91e3b06618e0aa222197fa854648d2a939b469d6 /src/rpcblockchain.cpp
parent3e74ac22d5298f3259115848db5ac96e00d74e4a (diff)
downloadbitcoin-d56e30ca898469cf5988b0fc9847ec79b43be49c.tar.xz
removed a few unnecessary casts
Diffstat (limited to 'src/rpcblockchain.cpp')
-rw-r--r--src/rpcblockchain.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rpcblockchain.cpp b/src/rpcblockchain.cpp
index 0a0fff41d7..a303b5d3ef 100644
--- a/src/rpcblockchain.cpp
+++ b/src/rpcblockchain.cpp
@@ -64,7 +64,7 @@ Object blockToJSON(const CBlock& block, const CBlockIndex* blockindex)
BOOST_FOREACH(const CTransaction&tx, block.vtx)
txs.push_back(tx.GetHash().GetHex());
result.push_back(Pair("tx", txs));
- result.push_back(Pair("time", (int64_t)block.GetBlockTime()));
+ result.push_back(Pair("time", block.GetBlockTime()));
result.push_back(Pair("nonce", (uint64_t)block.nNonce));
result.push_back(Pair("bits", HexBits(block.nBits)));
result.push_back(Pair("difficulty", GetDifficulty(blockindex)));
@@ -175,7 +175,7 @@ Value getrawmempool(const Array& params, bool fHelp)
Object info;
info.push_back(Pair("size", (int)e.GetTxSize()));
info.push_back(Pair("fee", ValueFromAmount(e.GetFee())));
- info.push_back(Pair("time", (int64_t)e.GetTime()));
+ info.push_back(Pair("time", e.GetTime()));
info.push_back(Pair("height", (int)e.GetHeight()));
info.push_back(Pair("startingpriority", e.GetPriority(e.GetHeight())));
info.push_back(Pair("currentpriority", e.GetPriority(chainActive.Height())));