diff options
| author | Shaul Kfir <[email protected]> | 2015-02-02 12:30:56 -0500 |
|---|---|---|
| committer | Shaul Kfir <[email protected]> | 2015-02-02 14:36:00 -0500 |
| commit | f4b2078f721887b8b913464e197f6eaae9086938 (patch) | |
| tree | 77f25a424cb67035c6f12f40920b74b98d989a62 | |
| parent | Merge pull request #5731 (diff) | |
| download | discoin-f4b2078f721887b8b913464e197f6eaae9086938.tar.xz discoin-f4b2078f721887b8b913464e197f6eaae9086938.zip | |
Replace difficulty readjustment blocks with Interval()
| -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 5df5de66d..f1c401657 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) |