Added quitting reason
This commit is contained in:
parent
7238a77327
commit
bb2433ca1a
18
peer.go
18
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 {
|
||||
|
Loading…
Reference in New Issue
Block a user