Skip to content
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

Add include state machine #95

Merged
merged 12 commits into from
Aug 16, 2023
Merged

Add include state machine #95

merged 12 commits into from
Aug 16, 2023

Conversation

iand
Copy link
Contributor

@iand iand commented Aug 15, 2023

Based on sm-bootstrap branch (#90)

This adds a state machine for running the include process described in #45. The state machine manages a queue of candidates nodes and processes them by checking whether they respond to a find node request. Candidates that respond with one or more closer nodes are considered live and added to the routing table. Nodes that do not respond or do not provide any suggested closer nodes are dropped from the queue. The number of concurrent checks in flight is configurable.

Not done yet:

  • check timeouts
  • removing nodes failing checks from routing table
  • notifying of unroutable nodes

@iand iand force-pushed the sm-include branch 2 times, most recently from c0e6dcd to 08c3fe5 Compare August 15, 2023 11:33
Base automatically changed from sm-bootstrap to main August 16, 2023 15:18
@iand iand marked this pull request as ready for review August 16, 2023 15:18
@iand iand merged commit 5d7f68c into main Aug 16, 2023
1 check passed
@iand iand deleted the sm-include branch August 16, 2023 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant