-
Notifications
You must be signed in to change notification settings - Fork 223
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
fix and simplify some bootstrapping logic #405
Merged
Merged
Commits on Nov 5, 2019
-
feat(bootstrap): simplify bootstrapping
* Rename triggerAutoBootstrap to autoBootstrap. This variable used to control _triggering_ only but now completely disables automatic bootstrapping. * Remove the BootstrapConfig. We introduced this before we switched to functional options. Now that we're breaking the interfaces anyways, we might as well use functional options all the way (easier to extend). * Always query self (feedback from @raulk). * Important: don't abort the bootstrap process if we timeout finding ourselves.
Configuration menu - View commit details
-
Copy full SHA for ed244cd - Browse repository at this point
Copy the full SHA ed244cdView commit details -
fix(bootstrap): bootstrap sequentially
The default timeout is 10s so this won't take that long anyways. On the other hand, if we do this all at once, we max the swarms dial queue.
Configuration menu - View commit details
-
Copy full SHA for 645ba5b - Browse repository at this point
Copy the full SHA 645ba5bView commit details -
fix(bootstrap): don't bootstrap more than 16 buckets
We can't generate target IDs in buckets beyond bucket 15 so there's no point.
Configuration menu - View commit details
-
Copy full SHA for 71c05a8 - Browse repository at this point
Copy the full SHA 71c05a8View commit details -
chore: rename bootstrap to refresh
As pointed out by raul, bootstrapping and refreshing are not the same thing. Bootstrapping is the initial setup (i.e., connect to some initial nodes to get started). Refreshing is the process of refreshing the routing table.
Configuration menu - View commit details
-
Copy full SHA for ef31967 - Browse repository at this point
Copy the full SHA ef31967View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4eaf429 - Browse repository at this point
Copy the full SHA 4eaf429View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76f388b - Browse repository at this point
Copy the full SHA 76f388bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b8eb083 - Browse repository at this point
Copy the full SHA b8eb083View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8e9ecdb - Browse repository at this point
Copy the full SHA 8e9ecdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4bc0480 - Browse repository at this point
Copy the full SHA 4bc0480View commit details -
Configuration menu - View commit details
-
Copy full SHA for a33b0b9 - Browse repository at this point
Copy the full SHA a33b0b9View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.