Skip to content

Commit

Permalink
Reapply "Chaged the GossipSub max message size to 3MB"
Browse files Browse the repository at this point in the history
This reverts commit 35fe177.
  • Loading branch information
gameofpointers committed Oct 4, 2024
1 parent f7b1eba commit 365b69a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion p2p/node/pubsubManager/gossipsub.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import (
"github.com/dominant-strategies/go-quai/log"
p2p "github.com/dominant-strategies/go-quai/p2p"
"github.com/dominant-strategies/go-quai/p2p/pb"
"github.com/dominant-strategies/go-quai/params"
"github.com/dominant-strategies/go-quai/quai"
)

Expand Down Expand Up @@ -51,7 +52,7 @@ func NewGossipSubManager(ctx context.Context, h host.Host) (*PubsubManager, erro
cfg.Dlo = 6
cfg.Dhi = 45
cfg.Dout = 20
ps, err := pubsub.NewGossipSub(ctx, h, pubsub.WithGossipSubParams(cfg))
ps, err := pubsub.NewGossipSub(ctx, h, pubsub.WithGossipSubParams(cfg), pubsub.WithMaxMessageSize(params.MaxGossipsubPacketSize))
if err != nil {
return nil, err
}
Expand Down
1 change: 1 addition & 0 deletions params/protocol_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ const (
)

var (
MaxGossipsubPacketSize = 3 << 20
GasCeil uint64 = 20000000
ColosseumGasCeil uint64 = 70000000
GardenGasCeil uint64 = 160000000
Expand Down

0 comments on commit 365b69a

Please sign in to comment.