mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
Fixed dagger verification
This commit is contained in:
parent
54bce64e3a
commit
406adb4563
1 changed files with 1 additions and 1 deletions
|
|
@ -139,7 +139,7 @@ func (bm *BlockManager) ValidateBlock(block *ethutil.Block) error {
|
|||
}
|
||||
|
||||
// Verify the nonce of the block. Return an error if it's not valid
|
||||
if !DaggerVerify(block.Hash(), block.Nonce) {
|
||||
if !DaggerVerify(ethutil.BigD(block.Hash()), block.Difficulty, block.Nonce) {
|
||||
return errors.New("Block's nonce is invalid")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue