Skip to content

Commit c3a969f

Browse files
henopiedjagdeep sidhu
authored andcommitted
p2p: fix type of DiscSubprotocolError (ethereum#24747)
It was 'int' accidentally, should be DiscReason instead.
1 parent b990681 commit c3a969f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

p2p/peer_error.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const (
6969
DiscUnexpectedIdentity
7070
DiscSelf
7171
DiscReadTimeout
72-
DiscSubprotocolError = 0x10
72+
DiscSubprotocolError = DiscReason(0x10)
7373
)
7474

7575
var discReasonToString = [...]string{

0 commit comments

Comments
 (0)