aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-04-17 08:13:32 +0800
committerFelix Lange <fjl@twurst.com>2015-04-17 20:45:10 +0800
commit9c7281c17ebbdd6a8c10ecc618bcb9121215a21f (patch)
tree158ea1831f4abec10ed1156e04197b048ffd6cdd
parent4d5a518a0ba7b0f1d42c73f3c28fe0828e7ea974 (diff)
downloaddexon-9c7281c17ebbdd6a8c10ecc618bcb9121215a21f.tar
dexon-9c7281c17ebbdd6a8c10ecc618bcb9121215a21f.tar.gz
dexon-9c7281c17ebbdd6a8c10ecc618bcb9121215a21f.tar.bz2
dexon-9c7281c17ebbdd6a8c10ecc618bcb9121215a21f.tar.lz
dexon-9c7281c17ebbdd6a8c10ecc618bcb9121215a21f.tar.xz
dexon-9c7281c17ebbdd6a8c10ecc618bcb9121215a21f.tar.zst
dexon-9c7281c17ebbdd6a8c10ecc618bcb9121215a21f.zip
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.
-rw-r--r--p2p/peer_error.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/peer_error.go b/p2p/peer_error.go
index 402131630..a912f6064 100644
--- a/p2p/peer_error.go
+++ b/p2p/peer_error.go
@@ -57,7 +57,7 @@ func (self *peerError) Error() string {
return self.message
}
-type DiscReason byte
+type DiscReason uint
const (
DiscRequested DiscReason = iota