Browse Source

p2p: fix value of DiscSubprotocolError

We had the wrong value (12) since forever.
Felix Lange 10 năm trước cách đây
mục cha
commit
0d10d5a0a5
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      p2p/peer_error.go

+ 1 - 1
p2p/peer_error.go

@@ -66,7 +66,7 @@ const (
 	DiscUnexpectedIdentity
 	DiscSelf
 	DiscReadTimeout
-	DiscSubprotocolError
+	DiscSubprotocolError = 0x10
 )
 
 var discReasonToString = [...]string{