Rename Interval() to DifficultyAdjustmentInterval()

This commit is contained in:
Shaul Kfir
2015-02-17 08:46:51 -05:00
parent 175d86e633
commit e5ece053da
3 changed files with 6 additions and 6 deletions

View File

@@ -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)