mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-21 15:50:07 +01:00
Rename Interval() to DifficultyAdjustmentInterval()
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user