mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Rename Interval() to DifficultyAdjustmentInterval()
This commit is contained in:
parent
175d86e633
commit
e5ece053da
3 changed files with 6 additions and 6 deletions
|
|
@ -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 % Params().Interval() + 1;
|
||||
lookup = pb->nHeight % Params().DifficultyAdjustmentInterval() + 1;
|
||||
|
||||
// If lookup is larger than chain, then set it to chain length.
|
||||
if (lookup > pb->nHeight)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue