Permalink
Browse files

Merge #7480: Changed getnetworkhps value to double to avoid overflow.

993d089 Changed getnetworkhps value to double to avoid overflow. (instagibbs)
  • Loading branch information...
laanwj committed Feb 9, 2016
2 parents 3ffe4b2 + 993d089 commit b49a62379900762a39c2f00dcad764076426d954
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/rpc/mining.cpp
View
@@ -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)

0 comments on commit b49a623

Please sign in to comment.