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

fix unused GossipSubHistoryGossip, make seenMessages ttl configurable #484

Merged
merged 1 commit into from May 24, 2022

Conversation

protolambda
Copy link
Contributor

This PR fixes a few minor issues:

  • The GossipSubHistoryGossip global was unused, the config was defaulting HistoryGossip to the same GossipSubHistoryLength as HistoryLength
  • Make seenMessages cache TTL configurable without having to change the global. Eth2 and optimism both customize this differently, it should not only just be a global var.
  • Make PeerScoreParams not use the global TimeCacheDuration by adding a SeenMsgTTL field. It will default to the global value if the new field is not specified, so no breaking changes.
  • Update dependencies: the tests would not run in Go 1.18 because of the (indirect) quic dependency not yet supporting Go 1.18. Some other libp2p libs already updated. Not sure about coordination of releases, but doesn't look like these dependency updates break anything.

Copy link
Collaborator

@vyzo vyzo left a comment

Choose a reason for hiding this comment

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

Sorry for the delay, i only noticed it now. Can you tag me for review in futute prs?

@vyzo vyzo merged commit 566fdfa into libp2p:master May 24, 2022
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.

None yet

2 participants