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

protocols/gossipsub: Do not overwrite msg's peers if put again into mcache #2493

Merged
merged 3 commits into from
Feb 14, 2022

Conversation

divagant-martian
Copy link
Contributor

@divagant-martian divagant-martian commented Feb 8, 2022

Putting a message in the mcache with a duplicate key would reset its peers. This makes it so that duplicates do not alter the cache

Copy link
Contributor

@AgeManning AgeManning left a comment

Choose a reason for hiding this comment

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

Yep nice catch

@AgeManning AgeManning changed the title do not overwrite a msg's peers if put again in the mcache protocols/gossipsub: do not overwrite a msg's peers if put again in the mcache Feb 9, 2022
@mxinden mxinden changed the title protocols/gossipsub: do not overwrite a msg's peers if put again in the mcache protocols/gossipsub: Do not overwrite msg's peers if put again into mcache Feb 14, 2022
@mxinden mxinden merged commit e66f04f into libp2p:master Feb 14, 2022
@AgeManning AgeManning deleted the mcache-put-bug branch November 29, 2023 05:11
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