diff options
author | obscuren <geffobscura@gmail.com> | 2014-02-17 03:33:23 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-02-17 03:33:23 +0800 |
commit | e5b97fe03e8789bf4e113946a1935c0ba270ad2b (patch) | |
tree | d9ec7374bdfe296f662e888d09b27eb1ccf2ab5c /peer.go | |
parent | 2ea05292c0c7947deb90c37378eb36ea78b6cf20 (diff) | |
download | go-tangerine-e5b97fe03e8789bf4e113946a1935c0ba270ad2b.tar go-tangerine-e5b97fe03e8789bf4e113946a1935c0ba270ad2b.tar.gz go-tangerine-e5b97fe03e8789bf4e113946a1935c0ba270ad2b.tar.bz2 go-tangerine-e5b97fe03e8789bf4e113946a1935c0ba270ad2b.tar.lz go-tangerine-e5b97fe03e8789bf4e113946a1935c0ba270ad2b.tar.xz go-tangerine-e5b97fe03e8789bf4e113946a1935c0ba270ad2b.tar.zst go-tangerine-e5b97fe03e8789bf4e113946a1935c0ba270ad2b.zip |
Added proper error message
Diffstat (limited to 'peer.go')
-rw-r--r-- | peer.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |