swarm: Chunk refactor improvements (#17683)

* swarm/network: Protocol bump (for chunk refactor)

* swarm/network: Increase discovery and stream protocol version too

* swarm/network: Increase priority queue cap
pull/17691/merge
Balint Gabor 6 years ago committed by GitHub
parent 5d1d1a808d
commit bd58098f2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      swarm/network/protocol.go
  2. 2
      swarm/network/protocol_test.go
  3. 4
      swarm/network/stream/stream.go

@ -44,7 +44,7 @@ const (
// BzzSpec is the spec of the generic swarm handshake
var BzzSpec = &protocols.Spec{
Name: "bzz",
Version: 6,
Version: 7,
MaxMsgSize: 10 * 1024 * 1024,
Messages: []interface{}{
HandshakeMsg{},
@ -54,7 +54,7 @@ var BzzSpec = &protocols.Spec{
// DiscoverySpec is the spec for the bzz discovery subprotocols
var DiscoverySpec = &protocols.Spec{
Name: "hive",
Version: 5,
Version: 6,
MaxMsgSize: 10 * 1024 * 1024,
Messages: []interface{}{
peersMsg{},

@ -31,7 +31,7 @@ import (
)
const (
TestProtocolVersion = 6
TestProtocolVersion = 7
TestProtocolNetworkID = 3
)

@ -42,7 +42,7 @@ const (
High
Top
PriorityQueue = 4 // number of priority queues - Low, Mid, High, Top
PriorityQueueCap = 128 // queue capacity
PriorityQueueCap = 4096 // queue capacity
HashSize = 32
)
@ -639,7 +639,7 @@ func (c *clientParams) clientCreated() {
// Spec is the spec of the streamer protocol
var Spec = &protocols.Spec{
Name: "stream",
Version: 5,
Version: 6,
MaxMsgSize: 10 * 1024 * 1024,
Messages: []interface{}{
UnsubscribeMsg{},

Loading…
Cancel
Save