Chainparams: Cleanup: Delete CChainParams getters to attributes from Consensus::Params

This commit is contained in:
Jorge Timón
2015-04-10 18:35:09 +02:00
parent 9125c08f34
commit e8e8904dda
3 changed files with 5 additions and 7 deletions

View File

@@ -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)