From 918f92030d774dd3a8e4e04f95c283fabc4e4147 Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Tue, 26 Mar 2024 09:55:26 +0700 Subject: [PATCH] feat: enable gossipsub batch publish --- packages/beacon-node/src/network/gossip/gossipsub.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/beacon-node/src/network/gossip/gossipsub.ts b/packages/beacon-node/src/network/gossip/gossipsub.ts index 649d8a0f9361..cf1d37f7cd1e 100644 --- a/packages/beacon-node/src/network/gossip/gossipsub.ts +++ b/packages/beacon-node/src/network/gossip/gossipsub.ts @@ -125,6 +125,8 @@ export class Eth2Gossipsub extends GossipSub { asyncValidation: true, maxOutboundBufferSize: MAX_OUTBOUND_BUFFER_SIZE, + // serialize message once and send to all peers when publishing + batchPublish: true, }); this.scoreParams = scoreParams; this.config = config;