Skip to content

Commit

Permalink
feat: increase target peers to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
twoeths committed Mar 18, 2024
1 parent 57127cc commit ef4fdfc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/beacon-node/src/network/gossip/gossipsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ export class Eth2Gossipsub extends GossipSub {
asyncValidation: true,

maxOutboundBufferSize: MAX_OUTBOUND_BUFFER_SIZE,
batchPublish: true,
});
this.scoreParams = scoreParams;
this.config = config;
Expand Down
4 changes: 2 additions & 2 deletions packages/beacon-node/src/network/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit ef4fdfc

Please sign in to comment.