diff options
| author | instagibbs <[email protected]> | 2016-02-08 10:49:27 -0500 |
|---|---|---|
| committer | instagibbs <[email protected]> | 2016-02-08 10:49:27 -0500 |
| commit | 993d089e82fc045d7b0f23e1a5dc934cba0e3306 (patch) | |
| tree | 65fac58850e983e05badca54fa2b48df17591f5f /src/rpc/mining.cpp | |
| parent | Merge #7465: [doc] Update release-process.md (diff) | |
| download | discoin-993d089e82fc045d7b0f23e1a5dc934cba0e3306.tar.xz discoin-993d089e82fc045d7b0f23e1a5dc934cba0e3306.zip | |
Changed getnetworkhps value to double to avoid overflow.
Diffstat (limited to 'src/rpc/mining.cpp')
| -rw-r--r-- | src/rpc/mining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/mining.cpp b/src/rpc/mining.cpp index 996b7f9cb..fec0987a4 100644 --- a/src/rpc/mining.cpp +++ b/src/rpc/mining.cpp @@ -68,7 +68,7 @@ UniValue GetNetworkHashPS(int lookup, int height) { arith_uint256 workDiff = pb->nChainWork - pb0->nChainWork; int64_t timeDiff = maxTime - minTime; - return (int64_t)(workDiff.getdouble() / timeDiff); + return workDiff.getdouble() / timeDiff; } UniValue getnetworkhashps(const UniValue& params, bool fHelp) |