diff options
| author | Kamil Domanski <[email protected]> | 2014-05-05 20:08:13 +0200 |
|---|---|---|
| committer | langerhans <[email protected]> | 2014-07-09 17:02:13 +0200 |
| commit | 2f69f6c80dd11f2ab8eff11aa0544345e524c244 (patch) | |
| tree | 6870eca5829354693d48b34f6c53e5faf670f125 /src/rpcmining.cpp | |
| parent | SetupEnvironment() - clean commit (diff) | |
| download | discoin-2f69f6c80dd11f2ab8eff11aa0544345e524c244.tar.xz discoin-2f69f6c80dd11f2ab8eff11aa0544345e524c244.zip | |
switch from boost int types to <stdint.h>
Rebased-By: Wladimir J. van der Laan <[email protected]>
Rebased-From: 4b61a6a, 3e74ac2, d56e30c
Github-Pull: #4129
Diffstat (limited to 'src/rpcmining.cpp')
| -rw-r--r-- | src/rpcmining.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 1cfcd9eca..368d6d25a 100644 --- a/src/rpcmining.cpp +++ b/src/rpcmining.cpp @@ -91,7 +91,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) @@ -229,8 +229,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 |