aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-17 03:33:23 +0800
committerobscuren <geffobscura@gmail.com>2014-02-17 03:33:23 +0800
commite5b97fe03e8789bf4e113946a1935c0ba270ad2b (patch)
treed9ec7374bdfe296f662e888d09b27eb1ccf2ab5c
parent2ea05292c0c7947deb90c37378eb36ea78b6cf20 (diff)
downloaddexon-e5b97fe03e8789bf4e113946a1935c0ba270ad2b.tar
dexon-e5b97fe03e8789bf4e113946a1935c0ba270ad2b.tar.gz
dexon-e5b97fe03e8789bf4e113946a1935c0ba270ad2b.tar.bz2
dexon-e5b97fe03e8789bf4e113946a1935c0ba270ad2b.tar.lz
dexon-e5b97fe03e8789bf4e113946a1935c0ba270ad2b.tar.xz
dexon-e5b97fe03e8789bf4e113946a1935c0ba270ad2b.tar.zst
dexon-e5b97fe03e8789bf4e113946a1935c0ba270ad2b.zip
Added proper error message
-rw-r--r--peer.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/peer.go b/peer.go
index 7b17b8b09..926d34eb3 100644
--- a/peer.go
+++ b/peer.go
@@ -293,7 +293,9 @@ func (p *Peer) HandleInbound() {
err = p.ethereum.BlockManager.ProcessBlock(block)
if err != nil {
- log.Println("bckmsg", err)
+ if ethutil.Config.Debug {
+ log.Printf("[PEER] Block (%x) err %v", block.Hash()[:4], err)
+ }
break
} else {
lastBlock = block