Skip to content

cli/net_params: Warn on empty public-addr when starting a validator node#5240

Merged
lexnv merged 6 commits intomasterfrom
lexnv/warn-dht-pub-addr
Aug 7, 2024
Merged

cli/net_params: Warn on empty public-addr when starting a validator node#5240
lexnv merged 6 commits intomasterfrom
lexnv/warn-dht-pub-addr

Conversation

@lexnv
Copy link
Contributor

@lexnv lexnv commented Aug 5, 2024

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

@lexnv lexnv self-assigned this Aug 5, 2024
Signed-off-by: Alexandru Vasile <[email protected]>
@lexnv lexnv added the T0-node This PR/Issue is related to the topic “node”. label Aug 5, 2024
lexnv added 2 commits August 5, 2024 17:15
Signed-off-by: Alexandru Vasile <[email protected]>
Signed-off-by: Alexandru Vasile <[email protected]>
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: cargo-clippy
Logs: https://gitlab.parity.io/parity/mirrors/polkadot-sdk/-/jobs/6903270

Signed-off-by: Alexandru Vasile <[email protected]>
})
};

// TODO: Return error here in the next release.
Copy link
Contributor

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]>
@lexnv lexnv added this pull request to the merge queue Aug 7, 2024
Merged via the queue into master with commit 7a6e91c Aug 7, 2024
@lexnv lexnv deleted the lexnv/warn-dht-pub-addr branch August 7, 2024 09:08

logger.init()?;

if config.role.is_authority() && config.network.public_addresses.is_empty() {
Copy link
Contributor

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?

Copy link
Contributor

Choose a reason for hiding this comment

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

dharjeezy pushed a commit to dharjeezy/polkadot-sdk that referenced this pull request Aug 28, 2024
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T0-node This PR/Issue is related to the topic “node”.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants