Skip to content

Commit

Permalink
chore: tweak idontwantMinDataSize
Browse files Browse the repository at this point in the history
  • Loading branch information
wemeetagain committed Sep 30, 2024
1 parent d8f67b9 commit c2d87f1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/beacon-node/src/network/gossip/gossipsub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ export class Eth2Gossipsub extends GossipSub {
// if this is false, only publish to mesh peers. If there is not enough GOSSIP_D mesh peers,
// publish to some more topic peers to make sure we always publish to at least GOSSIP_D peers
floodPublish: !opts?.disableFloodPublish,
// Only send IDONTWANT messages if the message size is larger than this
// This should be large enough to not send IDONTWANT for "small" messages
// See https://github.com/ChainSafe/lodestar/pull/7077#issuecomment-2383679472
idontwantMinDataSize: 16829,
});
this.scoreParams = scoreParams;
this.config = config;
Expand Down

0 comments on commit c2d87f1

Please sign in to comment.