diff options
author | Jorge Timón <jtimon@jtimon.cc> | 2015-04-10 18:35:09 +0200 |
---|---|---|
committer | Jorge Timón <jtimon@jtimon.cc> | 2015-04-13 18:39:53 +0200 |
commit | e8e8904ddae09ef9dc444bcdd2955109c9e9ce64 (patch) | |
tree | 5d5d252d7ba327c04c9c69519617a51cb990ee54 /src/rpcmining.cpp | |
parent | 9125c08f3468928eba004636bd95494a94e1a82b (diff) |
Chainparams: Cleanup: Delete CChainParams getters to attributes from Consensus::Params
Diffstat (limited to 'src/rpcmining.cpp')
-rw-r--r-- | src/rpcmining.cpp | 2 |
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) |