From ef4fdfc70d5265418c39a4bb4fff0d9fa5b6ad1c Mon Sep 17 00:00:00 2001 From: Tuyen Nguyen Date: Mon, 18 Mar 2024 08:52:03 +0700 Subject: [PATCH] feat: increase target peers to 100 --- packages/beacon-node/src/network/gossip/gossipsub.ts | 1 + packages/beacon-node/src/network/options.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/beacon-node/src/network/gossip/gossipsub.ts b/packages/beacon-node/src/network/gossip/gossipsub.ts index 649d8a0f9361..e06b36aa1a21 100644 --- a/packages/beacon-node/src/network/gossip/gossipsub.ts +++ b/packages/beacon-node/src/network/gossip/gossipsub.ts @@ -125,6 +125,7 @@ export class Eth2Gossipsub extends GossipSub { asyncValidation: true, maxOutboundBufferSize: MAX_OUTBOUND_BUFFER_SIZE, + batchPublish: true, }); this.scoreParams = scoreParams; this.config = config; diff --git a/packages/beacon-node/src/network/options.ts b/packages/beacon-node/src/network/options.ts index b490e3c7206d..0488ffd75ce4 100644 --- a/packages/beacon-node/src/network/options.ts +++ b/packages/beacon-node/src/network/options.ts @@ -25,8 +25,8 @@ export interface NetworkOptions } export const defaultNetworkOptions: NetworkOptions = { - maxPeers: 55, // Allow some room above targetPeers for new inbound peers - targetPeers: 50, + maxPeers: 110, // Allow some room above targetPeers for new inbound peers + targetPeers: 100, localMultiaddrs: ["/ip4/0.0.0.0/tcp/9000"], bootMultiaddrs: [], /** disabled by default */