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 unclezoro committed Sep 21, 2022
1 parent 6aae1bc commit ae31b5f
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 ae31b5f

Please sign in to comment.