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

feat: iDontWant is sent only for gossipsub 1.2 or higher #1135

Merged
merged 5 commits into from
Jun 25, 2024

Conversation

diegomrsantos
Copy link
Collaborator

@diegomrsantos diegomrsantos commented Jun 24, 2024

closes #1131

@diegomrsantos diegomrsantos self-assigned this Jun 24, 2024
@diegomrsantos diegomrsantos marked this pull request as ready for review June 24, 2024 16:36
Copy link
Collaborator

@AlejandroCabeza AlejandroCabeza left a comment

Choose a reason for hiding this comment

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

I think this test will fail when the GossipSubCodec is updated. It's fine to leave it like this and update it later, though.

@diegomrsantos
Copy link
Collaborator Author

I think this test will fail when the GossipSubCodec is updated. It's fine to leave it like this and update it later, though.

My implementation is wrong, it should be sent for versions >= 1.2.

@diegomrsantos diegomrsantos changed the title feat: iDontWant is sent only for gossipsub 1.2 feat: iDontWant is sent only for gossipsub 1.2 or higher Jun 24, 2024
discard

proc handlerB(topic: string, data: seq[byte]) {.async.} =
echo "handlerB ", topic, data.len
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not a fan of leaving echo in tests. It might be interesting to replace it with a check, though.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oh thanks, I forgot it there.

@diegomrsantos diegomrsantos merged commit 2195313 into master Jun 25, 2024
8 checks passed
@diegomrsantos diegomrsantos deleted the gossipsub12-improv branch June 25, 2024 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: done
Development

Successfully merging this pull request may close these issues.

Improvements related to Gossipsub 1.2
3 participants