From c806f0aa2008eaef5b5b2bcb03a448b409359600 Mon Sep 17 00:00:00 2001 From: Janos Guljas Date: Wed, 25 Apr 2018 17:25:59 +0200 Subject: [PATCH] swarm/network: bump versions for protocols bzz, hive and stream to 2 --- swarm/network/protocol.go | 4 ++-- swarm/network/stream/stream.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/swarm/network/protocol.go b/swarm/network/protocol.go index ac022c2e86..0e6ccbe200 100644 --- a/swarm/network/protocol.go +++ b/swarm/network/protocol.go @@ -59,7 +59,7 @@ const ( // BzzSpec is the spec of the generic swarm handshake var BzzSpec = &protocols.Spec{ Name: "bzz", - Version: 1, + Version: 2, MaxMsgSize: 10 * 1024 * 1024, Messages: []interface{}{ HandshakeMsg{}, @@ -69,7 +69,7 @@ var BzzSpec = &protocols.Spec{ // DiscoverySpec is the spec for the bzz discovery subprotocols var DiscoverySpec = &protocols.Spec{ Name: "hive", - Version: 1, + Version: 2, MaxMsgSize: 10 * 1024 * 1024, Messages: []interface{}{ peersMsg{}, diff --git a/swarm/network/stream/stream.go b/swarm/network/stream/stream.go index 9ffa6205b4..35c92929b2 100644 --- a/swarm/network/stream/stream.go +++ b/swarm/network/stream/stream.go @@ -642,7 +642,7 @@ func (c *clientParams) clientCreated() { // Spec is the spec of the streamer protocol var Spec = &protocols.Spec{ Name: "stream", - Version: 1, + Version: 2, MaxMsgSize: 10 * 1024 * 1024, Messages: []interface{}{ UnsubscribeMsg{},