p2p: define DiscReason as uint8 (#24507)
All other implementations store disconnect reasons as a single byte, so go-ethereum should do it too.
This commit is contained in:
@ -54,7 +54,7 @@ func (pe *peerError) Error() string {
|
||||
|
||||
var errProtocolReturned = errors.New("protocol returned")
|
||||
|
||||
type DiscReason uint
|
||||
type DiscReason uint8
|
||||
|
||||
const (
|
||||
DiscRequested DiscReason = iota
|
||||
|
Reference in New Issue
Block a user