Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: increase the default for seenTTL to match that of go-libp2p #200

Merged
merged 1 commit into from
Mar 13, 2022
Merged

chore: increase the default for seenTTL to match that of go-libp2p #200

merged 1 commit into from
Mar 13, 2022

Conversation

stbrody
Copy link
Contributor

@stbrody stbrody commented Mar 11, 2022

In the go implementation of gossipsub, libp2p keeps a 2 minute long cache of recently seen pubsub messages so that the node won't forward on duplicate messages. In the JS implementation the default seen cache ttl is only 30 seconds. We have seen issues with duplicate pubsub messages (see libp2p/js-libp2p#1043) and think this shorter cache ttl may be part of the problem. In any case it would be good for the default behavior to be consistent between the javascript and go implementation

@CLAassistant
Copy link

CLAassistant commented Mar 11, 2022

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@wemeetagain wemeetagain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@wemeetagain wemeetagain merged commit 78fd9be into ChainSafe:master Mar 13, 2022
@stbrody stbrody deleted the chore/seen-cache-ttl-increase branch March 14, 2022 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants