mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Add parentChainPowLimit, check in CheckBitcoinProof
This commit is contained in:
parent
e30340a8d6
commit
c87debb048
3 changed files with 9 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ bool CheckBitcoinProof(uint256 hash, unsigned int nBits)
|
|||
bnTarget.SetCompact(nBits, &fNegative, &fOverflow);
|
||||
|
||||
// Check range
|
||||
if (fNegative || bnTarget == 0 || fOverflow || bnTarget > UintToArith256(Params().GetConsensus().powLimit))
|
||||
if (fNegative || bnTarget == 0 || fOverflow || bnTarget > UintToArith256(Params().GetConsensus().parentChainPowLimit))
|
||||
return false;
|
||||
|
||||
// Check proof of work matches claimed amount
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue