aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorShaul Kfir <shaul.kfir@gmail.com>2015-02-17 08:46:51 -0500
committerShaul Kfir <shaul.kfir@gmail.com>2015-02-17 08:46:51 -0500
commite5ece053da705a630bb664e16036299915ac1246 (patch)
tree532f7872bc94d87796ddb5143cf34b5fdf789c4b /src/rpcmining.cpp
parent175d86e633bedcfb642fb326f1ec0b43c14c4f3b (diff)
Rename Interval() to DifficultyAdjustmentInterval()
Diffstat (limited to 'src/rpcmining.cpp')
-rw-r--r--src/rpcmining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp
index e3ae5cff42..165a9df697 100644
--- a/src/rpcmining.cpp
+++ b/src/rpcmining.cpp
@@ -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)