aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-02-09 12:48:18 +0100
committerWladimir J. van der Laan <[email protected]>2015-02-09 12:48:38 +0100
commit7225577f6b8bcdc3b4f109717b11a1a6a8ee3ed6 (patch)
tree6656768049de60d707a1996a660b7de5aba12a72 /src/rpcmining.cpp
parentMerge pull request #5764 (diff)
parentReplace difficulty readjustment blocks with Interval() (diff)
downloaddiscoin-7225577f6b8bcdc3b4f109717b11a1a6a8ee3ed6.tar.xz
discoin-7225577f6b8bcdc3b4f109717b11a1a6a8ee3ed6.zip
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 8f2d34edf..e3ae5cff4 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)