mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-03 09:56:38 -05:00
Merge #7480: Changed getnetworkhps value to double to avoid overflow.
993d089
Changed getnetworkhps value to double to avoid overflow. (instagibbs)
This commit is contained in:
commit
b49a623799
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue