-
Notifications
You must be signed in to change notification settings - Fork 55
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
Conversation
There was a problem hiding this 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.
My implementation is wrong, it should be sent for versions >= 1.2. |
50ed800
to
55a6eb1
Compare
tests/pubsub/testgossipsub.nim
Outdated
discard | ||
|
||
proc handlerB(topic: string, data: seq[byte]) {.async.} = | ||
echo "handlerB ", topic, data.len |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
closes #1131