mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Chainparams: Cleanup: Delete CChainParams getters to attributes from Consensus::Params
This commit is contained in:
parent
9125c08f34
commit
e8e8904dda
3 changed files with 5 additions and 7 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue