mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Add parentChainPowLimit, check in CheckBitcoinProof
This commit is contained in:
parent
8c8565c9e5
commit
85be0821fa
3 changed files with 9 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ bool CheckBitcoinProof(const CBlockHeader& block)
|
|||
bnTarget.SetCompact(block.bitcoinproof.challenge, &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