浏览代码

p2p: fix value of DiscSubprotocolError

We had the wrong value (12) since forever.
Felix Lange 10 年之前
父节点
当前提交
0d10d5a0a5
共有 1 个文件被更改,包括 1 次插入1 次删除
  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{