From 2f0b94fa1a561b03c44e525d4dabcc975625db21 Mon Sep 17 00:00:00 2001 From: Anton Evangelatov Date: Thu, 13 Jun 2019 16:11:46 +0200 Subject: [PATCH] network: bump proto versions due to change in OfferedHashesMsg (#1465) --- network/protocol.go | 4 ++-- network/protocol_test.go | 2 +- network/stream/stream.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/network/protocol.go b/network/protocol.go index 45d3a05d16..815fcd8f9e 100644 --- a/network/protocol.go +++ b/network/protocol.go @@ -43,7 +43,7 @@ var DefaultTestNetworkID = rand.Uint64() // BzzSpec is the spec of the generic swarm handshake var BzzSpec = &protocols.Spec{ Name: "bzz", - Version: 9, + Version: 10, MaxMsgSize: 10 * 1024 * 1024, Messages: []interface{}{ HandshakeMsg{}, @@ -53,7 +53,7 @@ var BzzSpec = &protocols.Spec{ // DiscoverySpec is the spec for the bzz discovery subprotocols var DiscoverySpec = &protocols.Spec{ Name: "hive", - Version: 8, + Version: 9, MaxMsgSize: 10 * 1024 * 1024, Messages: []interface{}{ peersMsg{}, diff --git a/network/protocol_test.go b/network/protocol_test.go index f0044e893f..74cfc60333 100644 --- a/network/protocol_test.go +++ b/network/protocol_test.go @@ -36,7 +36,7 @@ import ( ) const ( - TestProtocolVersion = 9 + TestProtocolVersion = 10 ) var TestProtocolNetworkID = DefaultTestNetworkID diff --git a/network/stream/stream.go b/network/stream/stream.go index 2ad9d1cbbe..6c3dbd0152 100644 --- a/network/stream/stream.go +++ b/network/stream/stream.go @@ -623,7 +623,7 @@ func (r *Registry) createSpec() { // Spec is the spec of the streamer protocol var spec = &protocols.Spec{ Name: "stream", - Version: 8, + Version: 9, MaxMsgSize: 10 * 1024 * 1024, Messages: []interface{}{ UnsubscribeMsg{},