mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
Chainparams: Cleanup: Delete CChainParams getters to attributes from Consensus::Params
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user