diff options
author | Shaul Kfir <shaul.kfir@gmail.com> | 2015-02-02 12:30:56 -0500 |
---|---|---|
committer | Shaul Kfir <shaul.kfir@gmail.com> | 2015-02-02 14:36:00 -0500 |
commit | f4b2078f721887b8b913464e197f6eaae9086938 (patch) | |
tree | 77f25a424cb67035c6f12f40920b74b98d989a62 | |
parent | a62649731fb1babaedff10b7c0baec4c50c90d60 (diff) |
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 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) |