aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-04-15 11:53:27 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-04-15 12:00:09 +0200
commit622e3c9c3965c06acd1071d587a7b5286afd1aa4 (patch)
tree274584a5c075b8fbd9d37d862fdd2ac49aa84690 /src/rpcmining.cpp
parent4c4f1b4721c7c8ef54eb5eea0208482352503d24 (diff)
parente8e8904ddae09ef9dc444bcdd2955109c9e9ce64 (diff)
downloadbitcoin-622e3c9c3965c06acd1071d587a7b5286afd1aa4.tar.xz
Merge pull request #5999
e8e8904 Chainparams: Cleanup: Delete CChainParams getters to attributes from Consensus::Params (Jorge Timón)
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 949fe3ed52..18f0ec0f81 100644
--- a/src/rpcmining.cpp
+++ b/src/rpcmining.cpp
@@ -45,7 +45,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().DifficultyAdjustmentInterval() + 1;
+ lookup = pb->nHeight % Params().GetConsensus().DifficultyAdjustmentInterval() + 1;
// If lookup is larger than chain, then set it to chain length.
if (lookup > pb->nHeight)