Replace difficulty readjustment blocks with Interval()
This commit is contained in:
parent
a62649731f
commit
f4b2078f72
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ Value GetNetworkHashPS(int lookup, int height) {
|
||||||
|
|
||||||
// If lookup is -1, then use blocks since last difficulty change.
|
// If lookup is -1, then use blocks since last difficulty change.
|
||||||
if (lookup <= 0)
|
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 is larger than chain, then set it to chain length.
|
||||||
if (lookup > pb->nHeight)
|
if (lookup > pb->nHeight)
|
||||||
|
|
Loading…
Reference in a new issue