Skip to content

Commit

Permalink
p2p: fix type of DiscSubprotocolError (ethereum#24747)
Browse files Browse the repository at this point in the history
It was 'int' accidentally, should be DiscReason instead.
  • Loading branch information
henopied authored and jagdeep sidhu committed May 5, 2022
1 parent b990681 commit c3a969f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion p2p/peer_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ const (
DiscUnexpectedIdentity
DiscSelf
DiscReadTimeout
DiscSubprotocolError = 0x10
DiscSubprotocolError = DiscReason(0x10)
)

var discReasonToString = [...]string{
Expand Down

0 comments on commit c3a969f

Please sign in to comment.