Browse Source

Merge pull request #5739

f4b2078 Replace difficulty readjustment blocks with Interval() (Shaul Kfir)
0.13
Wladimir J. van der Laan 10 years ago
parent
commit
7225577f6b
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 2
      src/rpcmining.cpp

2
src/rpcmining.cpp

@ -44,7 +44,7 @@ Value GetNetworkHashPS(int lookup, int height) {
// If lookup is -1, then use blocks since last difficulty change. // If lookup is -1, then use blocks since last difficulty change.
if (lookup <= 0) if (lookup <= 0)
lookup = pb->nHeight % 2016 + 1; lookup = pb->nHeight % Params().Interval() + 1;
// If lookup is larger than chain, then set it to chain length. // If lookup is larger than chain, then set it to chain length.
if (lookup > pb->nHeight) if (lookup > pb->nHeight)

Loading…
Cancel
Save