Skip to content

Commit c2d87f1

Browse files
committed
chore: tweak idontwantMinDataSize
1 parent d8f67b9 commit c2d87f1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/beacon-node/src/network/gossip/gossipsub.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ export class Eth2Gossipsub extends GossipSub {
136136
// if this is false, only publish to mesh peers. If there is not enough GOSSIP_D mesh peers,
137137
// publish to some more topic peers to make sure we always publish to at least GOSSIP_D peers
138138
floodPublish: !opts?.disableFloodPublish,
139+
// Only send IDONTWANT messages if the message size is larger than this
140+
// This should be large enough to not send IDONTWANT for "small" messages
141+
// See https://github.com/ChainSafe/lodestar/pull/7077#issuecomment-2383679472
142+
idontwantMinDataSize: 16829,
139143
});
140144
this.scoreParams = scoreParams;
141145
this.config = config;

0 commit comments

Comments
 (0)