From bb2433ca1a953e610396707a67ca5eb73574e81f Mon Sep 17 00:00:00 2001 From: obscuren Date: Tue, 1 Jul 2014 20:32:47 +0200 Subject: [PATCH] Added quitting reason --- peer.go | 18 ++++++++++-------- 1 file 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 {