aboutsummaryrefslogtreecommitdiff
path: root/src/rpcmining.cpp
diff options
context:
space:
mode:
authorJorge Timón <jtimon@jtimon.cc>2015-04-10 18:35:09 +0200
committerJorge Timón <jtimon@jtimon.cc>2015-04-13 18:39:53 +0200
commite8e8904ddae09ef9dc444bcdd2955109c9e9ce64 (patch)
tree5d5d252d7ba327c04c9c69519617a51cb990ee54 /src/rpcmining.cpp
parent9125c08f3468928eba004636bd95494a94e1a82b (diff)
downloadbitcoin-e8e8904ddae09ef9dc444bcdd2955109c9e9ce64.tar.xz
Chainparams: Cleanup: Delete CChainParams getters to attributes from Consensus::Params
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 1e6531f68a..f8cd8791c5 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)