aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
Diffstat (limited to 'p2p')
-rw-r--r--p2p/protocol.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/p2p/protocol.go b/p2p/protocol.go
index 28eab87cd..5af586f13 100644
--- a/p2p/protocol.go
+++ b/p2p/protocol.go
@@ -154,11 +154,11 @@ func (bp *baseProtocol) handle(rw MsgReadWriter) error {
return newPeerError(errProtocolBreach, "extra handshake received")
case discMsg:
- var reason DiscReason
+ var reason [1]DiscReason
if err := msg.Decode(&reason); err != nil {
return err
}
- bp.peer.Disconnect(reason)
+ bp.peer.Disconnect(reason[0])
return nil
case pingMsg: