aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-02-09 12:48:18 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2015-02-09 12:48:38 +0100
commit7225577f6b8bcdc3b4f109717b11a1a6a8ee3ed6 (patch)
tree6656768049de60d707a1996a660b7de5aba12a72 /src/rpcmining.cpp
parent5cefea9c4bf8880628157113cc44dcb9ffbcd6de (diff)
parentf4b2078f721887b8b913464e197f6eaae9086938 (diff)
Merge pull request #5739
f4b2078 Replace difficulty readjustment blocks with Interval() (Shaul Kfir)
Diffstat (limited to 'src/rpcmining.cpp')
-rw-r--r--src/rpcmining.cpp2
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)