mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-17 13:36:37 +00:00
Pretty print nonce
This commit is contained in:
parent
b15a4985e8
commit
07578fe25f
1 changed files with 1 additions and 1 deletions
|
|
@ -253,7 +253,7 @@ func (sm *StateManager) ValidateBlock(block *Block) error {
|
||||||
|
|
||||||
// Verify the nonce of the block. Return an error if it's not valid
|
// Verify the nonce of the block. Return an error if it's not valid
|
||||||
if !sm.Pow.Verify(block.HashNoNonce(), block.Difficulty, block.Nonce) {
|
if !sm.Pow.Verify(block.HashNoNonce(), block.Difficulty, block.Nonce) {
|
||||||
return ValidationError("Block's nonce is invalid (= %v)", block.Nonce)
|
return ValidationError("Block's nonce is invalid (= %v)", ethutil.Hex(block.Nonce))
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue