aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorKamil Domanski <kdomanski@kdemail.net>2014-05-05 20:08:13 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2014-05-21 11:25:18 +0200
commit79144ac17d308090f63115a8cda855aba37c5cad (patch)
tree198c25dbf9458bf52e0acea11917bf0a3279a56e /src/rpcmining.cpp
parent337459b96b4fb270db0a65b7ce12341891ae218a (diff)
downloadbitcoin-79144ac17d308090f63115a8cda855aba37c5cad.tar.xz
switch from boost int types to <stdint.h>
Rebased-By: Wladimir J. van der Laan <laanwj@gmail.com> Rebased-From: 4b61a6a, 3e74ac2, d56e30c Github-Pull: #4129
Diffstat (limited to 'src/rpcmining.cpp')
-rw-r--r--src/rpcmining.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp
index 070cf1cb2a..ef99cb3059 100644
--- a/src/rpcmining.cpp
+++ b/src/rpcmining.cpp
@@ -88,7 +88,7 @@ Value GetNetworkHashPS(int lookup, int height) {
uint256 workDiff = pb->nChainWork - pb0->nChainWork;
int64_t timeDiff = maxTime - minTime;
- return (boost::int64_t)(workDiff.getdouble() / timeDiff);
+ return (int64_t)(workDiff.getdouble() / timeDiff);
}
Value getnetworkhashps(const Array& params, bool fHelp)
@@ -226,8 +226,8 @@ Value gethashespersec(const Array& params, bool fHelp)
);
if (GetTimeMillis() - nHPSTimerStart > 8000)
- return (boost::int64_t)0;
- return (boost::int64_t)dHashesPerSec;
+ return (int64_t)0;
+ return (int64_t)dHashesPerSec;
}
#endif