p2p: make DiscReason bigger than byte

We decode into [1]DiscReason in a few places. That doesn't work anymore
because package rlp no longer accepts RLP lists for byte arrays.
This commit is contained in:
Felix Lange 2015-04-17 02:13:32 +02:00
parent 4d5a518a0b
commit 9c7281c17e

View File

@ -57,7 +57,7 @@ func (self *peerError) Error() string {
return self.message
}
type DiscReason byte
type DiscReason uint
const (
DiscRequested DiscReason = iota