mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Testchains: Don't check the genesis block
Rebased by Pieter Wuille. Cleanup by Matt Corallo.
This commit is contained in:
parent
20a84b8c45
commit
6bb56092b8
3 changed files with 5 additions and 1 deletions
|
|
@ -80,6 +80,9 @@ bool CheckProofOfWork(uint256 hash, unsigned int nBits, const Consensus::Params&
|
|||
bool fOverflow;
|
||||
arith_uint256 bnTarget;
|
||||
|
||||
if (hash == params.hashGenesisBlock)
|
||||
return true;
|
||||
|
||||
bnTarget.SetCompact(nBits, &fNegative, &fOverflow);
|
||||
|
||||
// Check range
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue