소스 검색

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{