aboutsummaryrefslogtreecommitdiffstats
path: root/blockpool/peers.go
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-03-03 01:43:12 +0800
committerzelig <viktor.tron@gmail.com>2015-03-03 01:43:12 +0800
commita60a18b080197cad836f18f9d093bba3bcb6cef8 (patch)
treebf5faaf44d1875a6c0cfe65107ad7329d70d2138 /blockpool/peers.go
parent16ecda951b767800b4e09ad8e86e0866b05136be (diff)
downloadgo-tangerine-a60a18b080197cad836f18f9d093bba3bcb6cef8.tar.gz
go-tangerine-a60a18b080197cad836f18f9d093bba3bcb6cef8.tar.zst
go-tangerine-a60a18b080197cad836f18f9d093bba3bcb6cef8.zip
- fix peer disconnect by adding severity function to errs
- improve logging - suicide -> removeChain - improved status BlocksInPool calculation
Diffstat (limited to 'blockpool/peers.go')
-rw-r--r--blockpool/peers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/blockpool/peers.go b/blockpool/peers.go
index 5f1b2017c..576d6e41d 100644
--- a/blockpool/peers.go
+++ b/blockpool/peers.go
@@ -503,7 +503,7 @@ LOOP:
// quitting on timeout
case <-self.suicide:
- self.peerError(self.bp.peers.errors.New(ErrInsufficientChainInfo, "timed out without providing block hashes or head block", currentBlockHash))
+ self.peerError(self.bp.peers.errors.New(ErrInsufficientChainInfo, "timed out without providing block hashes or head block %x", currentBlockHash))
self.bp.status.lock.Lock()
self.bp.status.badPeers[self.id]++