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:
Felix Lange
2022-03-07 18:25:45 +01:00
committed by GitHub
parent a79afd9ac3
commit 870b4505a0
2 changed files with 4 additions and 4 deletions

View File

@ -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