aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-03-17 18:13:35 +0800
committerobscuren <geffobscura@gmail.com>2014-03-17 18:13:35 +0800
commit07578fe25f475bb81ad308f592de2d89016d8431 (patch)
treead8c41fb5cbb2cf0fa80b45cee86543d2f3c0d92
parentb15a4985e89b1fbf67731bde2e4cef45b3fdf347 (diff)
downloadgo-tangerine-07578fe25f475bb81ad308f592de2d89016d8431.tar
go-tangerine-07578fe25f475bb81ad308f592de2d89016d8431.tar.gz
go-tangerine-07578fe25f475bb81ad308f592de2d89016d8431.tar.bz2
go-tangerine-07578fe25f475bb81ad308f592de2d89016d8431.tar.lz
go-tangerine-07578fe25f475bb81ad308f592de2d89016d8431.tar.xz
go-tangerine-07578fe25f475bb81ad308f592de2d89016d8431.tar.zst
go-tangerine-07578fe25f475bb81ad308f592de2d89016d8431.zip
Pretty print nonce
-rw-r--r--ethchain/state_manager.go2
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