aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2015-02-18 17:29:17 +0100
committerWladimir J. van der Laan <[email protected]>2015-02-18 17:29:28 +0100
commit8d0418720c29b72bd369f0b3b23b6d75584f3c08 (patch)
treeeb4bcc06141923f1e9c94804fce8d52affbc5a38 /src/rpcmining.cpp
parentMerge #5784: Fix usage of NegateSignatureS in script_tests (diff)
parentRename Interval() to DifficultyAdjustmentInterval() (diff)
downloaddiscoin-8d0418720c29b72bd369f0b3b23b6d75584f3c08.tar.xz
discoin-8d0418720c29b72bd369f0b3b23b6d75584f3c08.zip
Merge #5799: Rename Interval() to DifficultyAdjustmentInterval()
e5ece05 Rename Interval() to DifficultyAdjustmentInterval() (Shaul Kfir)
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 e3ae5cff4..165a9df69 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)