diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-02-09 12:48:18 +0100 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-02-09 12:48:38 +0100 |
| commit | 7225577f6b8bcdc3b4f109717b11a1a6a8ee3ed6 (patch) | |
| tree | 6656768049de60d707a1996a660b7de5aba12a72 /src/rpcmining.cpp | |
| parent | Merge pull request #5764 (diff) | |
| parent | Replace difficulty readjustment blocks with Interval() (diff) | |
| download | discoin-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.cpp | 2 |
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) |