mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
ContextualCheckBlockHeader: dynafed doesn't call CheckChallenge
This commit is contained in:
parent
9fe43cdf86
commit
5d281e7e68
1 changed files with 2 additions and 2 deletions
|
|
@ -3503,9 +3503,9 @@ static bool ContextualCheckBlockHeader(const CBlockHeader& block, CValidationSta
|
|||
assert(pindexPrev != nullptr);
|
||||
const int nHeight = pindexPrev->nHeight + 1;
|
||||
|
||||
// Check proof of work if necessary
|
||||
// Check proof of work target or non-dynamic signblockscript if necessary
|
||||
const Consensus::Params& consensusParams = params.GetConsensus();
|
||||
if (!CheckChallenge(block, *pindexPrev, consensusParams))
|
||||
if (!IsDynaFedEnabled(pindexPrev, consensusParams) && !CheckChallenge(block, *pindexPrev, consensusParams))
|
||||
return state.DoS(100, false, REJECT_INVALID, "bad-diffbits", false, "incorrect proof of work");
|
||||
|
||||
// Check against checkpoints
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue