diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-04 04:04:31 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-04 04:04:31 +0800 |
commit | 26de12d9bf23bce7de26b3b6629601ec2e58ad5b (patch) | |
tree | 0d4b76fcb717049d988b7f283967f43dc5517a5e /core/block_processor.go | |
parent | e9f1e868e2bc0205d0b7655cd07fcaba9b2bc97d (diff) | |
download | dexon-26de12d9bf23bce7de26b3b6629601ec2e58ad5b.tar dexon-26de12d9bf23bce7de26b3b6629601ec2e58ad5b.tar.gz dexon-26de12d9bf23bce7de26b3b6629601ec2e58ad5b.tar.bz2 dexon-26de12d9bf23bce7de26b3b6629601ec2e58ad5b.tar.lz dexon-26de12d9bf23bce7de26b3b6629601ec2e58ad5b.tar.xz dexon-26de12d9bf23bce7de26b3b6629601ec2e58ad5b.tar.zst dexon-26de12d9bf23bce7de26b3b6629601ec2e58ad5b.zip |
Changed nonce to a uint64
Diffstat (limited to 'core/block_processor.go')
-rw-r--r-- | core/block_processor.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/block_processor.go b/core/block_processor.go index 8974cd94b..a6632fca7 100644 --- a/core/block_processor.go +++ b/core/block_processor.go @@ -277,7 +277,7 @@ func (sm *BlockProcessor) ValidateBlock(block, parent *types.Block) error { // Verify the nonce of the block. Return an error if it's not valid if !sm.Pow.Verify(block) { - return ValidationError("Block's nonce is invalid (= %v)", ethutil.Bytes2Hex(block.Header().Nonce)) + return ValidationError("Block's nonce is invalid (= %x)", block.Header().Nonce) } return nil @@ -305,7 +305,7 @@ func (sm *BlockProcessor) AccumulateRewards(statedb *state.StateDB, block, paren } if !sm.Pow.Verify(types.NewBlockWithHeader(uncle)) { - return ValidationError("Uncle's nonce is invalid (= %v)", ethutil.Bytes2Hex(uncle.Nonce)) + return ValidationError("Uncle's nonce is invalid (= %x)", uncle.Nonce) } r := new(big.Int) |