aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
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 /p2p
parent4d5a518a0ba7b0f1d42c73f3c28fe0828e7ea974 (diff)
downloadgo-tangerine-9c7281c17ebbdd6a8c10ecc618bcb9121215a21f.tar.gz
go-tangerine-9c7281c17ebbdd6a8c10ecc618bcb9121215a21f.tar.zst
go-tangerine-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.
Diffstat (limited to 'p2p')
-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