From c0addb73a0d25f66e9e8222845835f242367b3d9 Mon Sep 17 00:00:00 2001 From: tuyennhv Date: Tue, 2 Apr 2024 21:25:21 +0700 Subject: [PATCH] feat: enable gossipsub batch publish (#6597) --- 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 4432e8085a4d..c9d839292242 100644 --- a/packages/beacon-node/src/network/gossip/gossipsub.ts +++ b/packages/beacon-node/src/network/gossip/gossipsub.ts @@ -126,6 +126,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;