Skip to content

How do I know that the Kademlia bootstrap process failed? #5211

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

You must be logged in to vote

If anyone wonders, the way it works is

  • all bootstrap nodes are listed as a single query to connect to,
  • the query will complete with stats on how many nodes have been reached,
  • one can observe the stats by catching the event
 kad::Event::OutboundQueryProgressed {
     stats,
     step: kad::ProgressStep { last, .. },
     ..
 } if last => {
     let mut update = format!(
         "Bootstrap nodes connection status (success)/(failure)/(total): ({})/({})/({})",
         stats.num_successes(),
         stats.num_failures(),
         stats.num_requests()
     );
     ....
}

Replies: 1 comment

Comment options

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