aboutsummaryrefslogtreecommitdiffstats
path: root/peer.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-02 02:32:47 +0800
committerobscuren <geffobscura@gmail.com>2014-07-02 02:32:47 +0800
commitbb2433ca1a953e610396707a67ca5eb73574e81f (patch)
treeacd5f090bf9334e8602a67a7c0df33f379551266 /peer.go
parent7238a773279622278c3312d0fa0a60b3a4436330 (diff)
downloadgo-tangerine-bb2433ca1a953e610396707a67ca5eb73574e81f.tar
go-tangerine-bb2433ca1a953e610396707a67ca5eb73574e81f.tar.gz
go-tangerine-bb2433ca1a953e610396707a67ca5eb73574e81f.tar.bz2
go-tangerine-bb2433ca1a953e610396707a67ca5eb73574e81f.tar.lz
go-tangerine-bb2433ca1a953e610396707a67ca5eb73574e81f.tar.xz
go-tangerine-bb2433ca1a953e610396707a67ca5eb73574e81f.tar.zst
go-tangerine-bb2433ca1a953e610396707a67ca5eb73574e81f.zip
Added quitting reason
Diffstat (limited to 'peer.go')
-rw-r--r--peer.go18
1 files changed, 10 insertions, 8 deletions
diff --git a/peer.go b/peer.go
index a4da1591b..8e14c7460 100644
--- a/peer.go
+++ b/peer.go
@@ -40,17 +40,19 @@ const (
DiscConnDup = 0x05
DiscGenesisErr = 0x06
DiscProtoErr = 0x07
+ DiscQuitting = 0x08
)
var discReasonToString = []string{
- "Disconnect requested",
- "Disconnect TCP sys error",
- "Disconnect bad protocol",
- "Disconnect useless peer",
- "Disconnect too many peers",
- "Disconnect already connected",
- "Disconnect wrong genesis block",
- "Disconnect incompatible network",
+ "requested",
+ "TCP sys error",
+ "bad protocol",
+ "useless peer",
+ "too many peers",
+ "already connected",
+ "wrong genesis block",
+ "incompatible network",
+ "quitting",
}
func (d DiscReason) String() string {