diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-02-09 12:48:18 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-02-09 12:48:38 +0100 |
commit | 7225577f6b8bcdc3b4f109717b11a1a6a8ee3ed6 (patch) | |
tree | 6656768049de60d707a1996a660b7de5aba12a72 /src | |
parent | 5cefea9c4bf8880628157113cc44dcb9ffbcd6de (diff) | |
parent | f4b2078f721887b8b913464e197f6eaae9086938 (diff) |
Merge pull request #5739
f4b2078 Replace difficulty readjustment blocks with Interval() (Shaul Kfir)
Diffstat (limited to 'src')
-rw-r--r-- | src/rpcmining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 8f2d34edff..e3ae5cff42 100644 --- a/src/rpcmining.cpp +++ b/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 <= 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 > pb->nHeight) |