Skip to content

Commit

Permalink
Merge pull request bitcoin#5739
Browse files Browse the repository at this point in the history
f4b2078 Replace difficulty readjustment blocks with Interval() (Shaul Kfir)
  • Loading branch information
laanwj committed Feb 9, 2015
2 parents 5cefea9 + f4b2078 commit 7225577
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rpcmining.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7225577

Please sign in to comment.