aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShaul Kfir <shaul.kfir@gmail.com>2015-02-02 12:30:56 -0500
committerShaul Kfir <shaul.kfir@gmail.com>2015-02-02 14:36:00 -0500
commitf4b2078f721887b8b913464e197f6eaae9086938 (patch)
tree77f25a424cb67035c6f12f40920b74b98d989a62 /src
parenta62649731fb1babaedff10b7c0baec4c50c90d60 (diff)
Replace difficulty readjustment blocks with Interval()
Diffstat (limited to 'src')
-rw-r--r--src/rpcmining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp
index 5df5de66d9..f1c4016575 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)