explain the 0x0f0f[..]0f0f powLimit constant for regtest
This commit is contained in:
parent
d6525e24db
commit
eab7efcae5
|
@ -633,7 +633,7 @@ public:
|
|||
static_assert(equihash_parameters_acceptable(N, K));
|
||||
consensus.nEquihashN = N;
|
||||
consensus.nEquihashK = K;
|
||||
consensus.powLimit = uint256S("0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f");
|
||||
consensus.powLimit = uint256S("0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f"); // if this is any larger, the for loop in GetNextWorkRequired can overflow bnTot
|
||||
consensus.nPowAveragingWindow = 17;
|
||||
assert(maxUint/UintToArith256(consensus.powLimit) >= consensus.nPowAveragingWindow);
|
||||
consensus.nPowMaxAdjustDown = 0; // Turn off adjustment down
|
||||
|
|
Loading…
Reference in New Issue