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

Prefer gossiping bootstrapper IPs #2400

Closed
wants to merge 2 commits into from

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

How this works

How this was tested

@@ -27,7 +27,7 @@ const (

MaxContainersLen = int(4 * DefaultMaxMessageSize / 5)

DefaultNetworkPeerListNumValidatorIPs = 15
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set this so that we will (even in the first message) send some non-bootstrapper IPs so that the first round of connections don't just result in everyone sending the same peerlists (and therefore the nodes not quickly connecting to the wider network)

@StephenButtolph StephenButtolph added the DO NOT MERGE This PR must not be merged in its current state label Nov 30, 2023
Co-authored-by: Dhruba Basu <[email protected]>
Signed-off-by: Stephen Buttolph <[email protected]>
s.Initialize(uint64(len(unknownValidators)))
var bootstrapperIDs set.Set[ids.NodeID]
for _, bootstrapper := range genesis.GetBootstrappers(n.config.NetworkID) {
bootstrapperIDs.Add(bootstrapper.ID)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will initialize the Set if it hasn't been yet, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

correct

Copy link

This PR has become stale because it has been open for 30 days with no activity. Adding the lifecycle/frozen label will cause this PR to ignore lifecycle events.

@StephenButtolph
Copy link
Contributor Author

This is no longer needed because v1.11.x has activated.

@StephenButtolph StephenButtolph deleted the prefer-gossip-bootstrappers branch March 19, 2024 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DO NOT MERGE This PR must not be merged in its current state lifecycle/stale
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants