We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc44c8f commit 972714cCopy full SHA for 972714c
src/pow.cpp
@@ -12,12 +12,9 @@
12
13
unsigned int GetNextWorkRequired(const CBlockIndex* pindexLast, const CBlockHeader *pblock, const Consensus::Params& params)
14
{
15
+ assert(pindexLast != NULL);
16
unsigned int nProofOfWorkLimit = UintToArith256(params.powLimit).GetCompact();
17
- // Genesis block
18
- if (pindexLast == NULL)
19
- return nProofOfWorkLimit;
20
-
21
// Only change once per difficulty adjustment interval
22
if ((pindexLast->nHeight+1) % params.DifficultyAdjustmentInterval() != 0)
23
0 commit comments