-
Notifications
You must be signed in to change notification settings - Fork 451
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
Reconsider Bootstrap interval #807
Comments
Hey @a1300 |
Hi @vasco-santos My problem is, that I have nodes that are not 100% of the time online. So in previous
How does |
Yes it has. It is basically a configurable way of attempting a dial to several peers on startup
That is probably true! I will need to think better about this for #744
Not great, but a bit better would be to configure bootstrap as in the examples and then: const Bootstrap = require('libp2p-bootstrap')
// ...
await libp2p.start()
// Listen on bootstrap events
libp2p._discovery.get(Bootstrap.tag).on('peer', (peer) => {})
Per this it will not try to re dial the peer unfortunately. You can still manually try to dial it through your event handler. It will probably be the best option at the moment |
@vasco-santos thank you very much |
I renamed the issue to an action point on what we discussed with the bootstrap interval and I will keep it open for visibility while we do not get the connection management stuff in place |
@jacobheun can you move this into the bootstrap repo? |
Issue moved to libp2p/js-libp2p-bootstrap #109 via ZenHub |
master
branchType:
Severity: Low
Description: The Bootstrap discovery mechanism only emits the event
peer:discovery
only once even when theinterval
property is specifiedI would expect from the Bootstrap discovery mechanism to fire the
peer:discovery
event every x millisecondsSteps to reproduce the error:
The text was updated successfully, but these errors were encountered: