Skip to content

Commit

Permalink
Chaged the GossipSub max message size to 3MB
Browse files Browse the repository at this point in the history
  • Loading branch information
gameofpointers committed Sep 5, 2024
1 parent 2485791 commit 0a0a936
Showing 1 changed file with 2 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 @@ -46,7 +46,8 @@ 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))
MaxSize := 3 << 20
ps, err := pubsub.NewGossipSub(ctx, h, pubsub.WithGossipSubParams(cfg), pubsub.WithMaxMessageSize(MaxSize))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 0a0a936

Please sign in to comment.