diff options
author | obscuren <geffobscura@gmail.com> | 2014-03-17 18:13:35 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-03-17 18:13:35 +0800 |
commit | 07578fe25f475bb81ad308f592de2d89016d8431 (patch) | |
tree | ad8c41fb5cbb2cf0fa80b45cee86543d2f3c0d92 /ethchain | |
parent | b15a4985e89b1fbf67731bde2e4cef45b3fdf347 (diff) | |
download | go-tangerine-07578fe25f475bb81ad308f592de2d89016d8431.tar.gz go-tangerine-07578fe25f475bb81ad308f592de2d89016d8431.tar.zst go-tangerine-07578fe25f475bb81ad308f592de2d89016d8431.zip |
Pretty print nonce
Diffstat (limited to 'ethchain')
-rw-r--r-- | ethchain/state_manager.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index c2a31ff6c..e67f0f680 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -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 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 |