diff options
author | obscuren <geffobscura@gmail.com> | 2014-01-13 08:22:33 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-01-13 08:22:33 +0800 |
commit | 578b63e2b8a32122fb45f9f053503e51d9a5c535 (patch) | |
tree | 156f31a7b3fccb30a575128f28fb1034283ef054 /block_manager.go | |
parent | 7ade1778fba0fd1f6e0bccc7647cd8fb3185528d (diff) | |
download | go-tangerine-578b63e2b8a32122fb45f9f053503e51d9a5c535.tar go-tangerine-578b63e2b8a32122fb45f9f053503e51d9a5c535.tar.gz go-tangerine-578b63e2b8a32122fb45f9f053503e51d9a5c535.tar.bz2 go-tangerine-578b63e2b8a32122fb45f9f053503e51d9a5c535.tar.lz go-tangerine-578b63e2b8a32122fb45f9f053503e51d9a5c535.tar.xz go-tangerine-578b63e2b8a32122fb45f9f053503e51d9a5c535.tar.zst go-tangerine-578b63e2b8a32122fb45f9f053503e51d9a5c535.zip |
Some miner reports
Diffstat (limited to 'block_manager.go')
-rw-r--r-- | block_manager.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/block_manager.go b/block_manager.go index b6c2cace7..7e16cdb3a 100644 --- a/block_manager.go +++ b/block_manager.go @@ -154,6 +154,7 @@ func (bm *BlockManager) ValidateBlock(block *ethutil.Block) error { // Verify the nonce of the block. Return an error if it's not valid if bm.bc.LastBlock != nil && block.PrevHash == "" && !DaggerVerify(ethutil.BigD(block.Hash()), block.Difficulty, block.Nonce) { + return errors.New("Block's nonce is invalid") } |