diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-04-15 11:53:27 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-04-15 12:00:09 +0200 |
| commit | 622e3c9c3965c06acd1071d587a7b5286afd1aa4 (patch) | |
| tree | 274584a5c075b8fbd9d37d862fdd2ac49aa84690 /src/rpcmining.cpp | |
| parent | Merge pull request #5992 (diff) | |
| parent | Chainparams: Cleanup: Delete CChainParams getters to attributes from Consensu... (diff) | |
| download | discoin-622e3c9c3965c06acd1071d587a7b5286afd1aa4.tar.xz discoin-622e3c9c3965c06acd1071d587a7b5286afd1aa4.zip | |
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.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcmining.cpp b/src/rpcmining.cpp index 949fe3ed5..18f0ec0f8 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) |