-
Notifications
You must be signed in to change notification settings - Fork 0
feat: dns discovery bootstrap #35
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
base: main
Are you sure you want to change the base?
Conversation
fb97ec8 to
76e65f4
Compare
|
Here is the output from |
|
It appears that the client is attempting to parse all messages, and the traffic from status is not WapEnvelope wrapped which is leading to decoding errors. Looks like we'll need to:
|
| await raya.start() | ||
|
|
||
| await sleepAsync(5.seconds) | ||
| await sleepAsync(10.seconds) |
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.
In the TUI example, you changed all durations to chronos.seconds(10). Which is the preferable form? That way I can make my future code consistent
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.
In TUI example, the times library is conflict with chronos, so the prefix is needed, 5.seconds seems preferable if no conflict happens.
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.
| import chronos | ||
| import illwill | ||
| import libp2p/crypto/crypto | ||
| import times |
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.
You could avoid the conflict between chronos and times - though not the cleanest
| from times import DateTime, format, now, `<` |
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.
Looks not clean to me, let's stick to the current one. I won't bother too much as we are switching language soon.
It works but not stable, I have encountered stability issues with discovery, likely because the state firewall and vpn.
Fix such experience should be handled in nwaku.
Can you also test tui and pingpong example and see if it's acceptable? @jazzz
Changes:
Fix: #17