-
Notifications
You must be signed in to change notification settings - Fork 744
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
cli/net_params: Warn on empty public-addr when starting a validator node #5240
Conversation
Signed-off-by: Alexandru Vasile <[email protected]>
Signed-off-by: Alexandru Vasile <[email protected]>
Signed-off-by: Alexandru Vasile <[email protected]>
Signed-off-by: Alexandru Vasile <[email protected]>
The CI pipeline was cancelled due to failure one of the required jobs. |
Signed-off-by: Alexandru Vasile <[email protected]>
substrate/client/cli/src/config.rs
Outdated
}) | ||
}; | ||
|
||
// TODO: Return error here in the next release. |
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.
We should have an issue for this and link the place where to add IMO. Already too many dead TODOs in the code 😬
Signed-off-by: Alexandru Vasile <[email protected]>
@@ -638,6 +644,14 @@ pub trait CliConfiguration<DCV: DefaultConfigurationValues = ()>: Sized { | |||
|
|||
logger.init()?; | |||
|
|||
if config.role.is_authority() && config.network.public_addresses.is_empty() { |
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.
Did you check parachain collators(is_authorithy returns true) won't get this warning?
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.
…ode (paritytech#5240) This PR shows a warning when the `--public-addr` is not provided for validators. In the future, we'll transform this warning into a hard failure. Validators are encouraged to provide this parameter for better availability over the network. cc @paritytech/networking --------- Signed-off-by: Alexandru Vasile <[email protected]>
This PR shows a warning when the
--public-addr
is not provided for validators.In the future, we'll transform this warning into a hard failure. Validators are encouraged to provide this parameter for better availability over the network.
cc @paritytech/networking