celestiaorg / celestia-node

Celestia Data Availability Nodes
Apache License 2.0
923 stars 924 forks source link

modp2p: increase the SeenMessage interval in PubSub #2934

Open Wondertan opened 10 months ago

Wondertan commented 10 months ago

We periodically receive old headers from the network that were already synced. Increasing the seen message interval should decrease those.

The only downside is that it may eat slightly more RAM, but it will improve GossipSub peering behaviors. Instead of punishing outdated messages as invalid, it will only reduce communication with the peer. This is especially important when the new CHOKE msg is introduced in the GossipSub v1.2

Wondertan commented 10 months ago

I looked it up, and its 2min by default, which means either: