-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Suppress bootstrap error #5769
Suppress bootstrap error #5769
Conversation
Hmm, so some test now fail because they instantiate daemons without bootstrap nodes. Can anyone give me a hint on how to quickly fix that? |
I'm not sure I agree with this. Really, MDNS and private networks are unrelated (unless you mean private networks via private VPNs). Most private networks (that use swarm keys) will want private bootstrap nodes. However, I do agree that this is way too noisy. It may make sense to just print a warning once and never again. |
The tests are probably failing because bootstrappers can be added and removed at runtime. |
Rather than checking for the presence of bootstrap nodes on each iteration of the deferred function, do the check at initialization time and report an error immediately. License: MIT Signed-off-by: Daniel Mack <[email protected]>
Hmm, okay. Agreed. I've force-pushed a new version that does just that. Thanks for your input! |
LGTM but I'd like someone else to take a quick look for a sanity check. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, I would change the error for a warning (but it's just a personal preference so feel free to ignore it).
Can this be merged with the test errors? |
We should, but I'd like to enable warnings by default first. Otherwise, users will never see it. |
That has been fixed. The first iteration aborted the construction of the periodic bootstrapper when no bootstrappers were configured. This one just warns and continues. |
When used in private network mode with
Bootstrap
set to[]
, the daemon currently spits out the following message ever 30 seconds:While it is good to mention, I see two issues with this:
This PR changes both the above, with one patch for each of them.