Skip to content

Ensuring the bootstrap node is up. #4876

Closed Answered by thomaseizinger
vnermolaev asked this question in Q&A
Discussion options

You must be logged in to vote

However, if a bootstrap node is not online yet, I get, as expected, errors. I wonder, is there an idiomatic way to ensure that the bootstrap node is online?

I am assuming you don't mean that literally because there is no way we can "ensure" that another peer is online. We can observe whether they are or not and react as a result.

Depending on the usecase of your network, a more general piece of functionality is could be to have an algorithm that aims for a being connected to a certain number of peers. If you fall below the threshold, the algorithm would attempt to establish new connections based on a random set of peers.

Once you have connections to these peers, calling bootstrap regula…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vnermolaev
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants