Skip to content

Commit

Permalink
Cherry-pick fix from geth:
Browse files Browse the repository at this point in the history
p2p: define DiscReason as uint8 (ethereum#24507)

All other implementations store disconnect reasons as a single byte,
so go-ethereum should do it too.
  • Loading branch information
fjl authored and wgr523 committed Mar 23, 2023
1 parent 63a5dc4 commit 8b46f46
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 @@ -56,7 +56,7 @@ var errProtocolReturned = errors.New("protocol returned")

var ErrAddPairPeer = errors.New("add a pair peer")

type DiscReason uint
type DiscReason uint8

const (
DiscRequested DiscReason = iota
Expand Down

0 comments on commit 8b46f46

Please sign in to comment.