-
Notifications
You must be signed in to change notification settings - Fork 55
fix(node): primary_address to use TCP instead of UDP #4753
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(node): primary_address to use TCP instead of UDP #4753
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 4 Skipped Deployments
|
d6c17fb to
41c66fc
Compare
|
|
| primary_address | ||
| .to_anemo_address() | ||
| .map_err(|_| E_METADATA_INVALID_PRIMARY_ADDR)?; | ||
| if !primary_address.is_loosely_valid_tcp_addr() { |
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.
I guess our change will break the network because I think we force the validators to already have TCP metadata?
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.
And even the validators can't update in the current version, because it wouldn't be a valid anemo address without UDP 😆
This comment was marked as duplicate.
This comment was marked as duplicate.
|
This PR will be seen as Protocol config changes, due to our changes at |
|
✅ Vercel Preview Deployment is ready! |
67e9904 to
d0890a4
Compare
…r transport string
bd11739 to
3b22a10
Compare
[Update 24.2.2025]
Description of change
primary_addressto use TCP instead of UDPvalidator.infoofiota validator make-validator-infocmd. (More info Fix output ofiota validator make-validator-info#4437)Plan/Todos
Links to any relevant issues
Fixes: #4437 Fix output of iota validator make-validator-info
Type of change
How the change has been tested
cargo t -p iota-types validator_with_These sections to be reconsidered/updated when we do final changes:
Check we accept validators with both TCP and UDP primary_address for a current working network (e.g. we do not want to break current testnet) and enforce TCP (deny UDP) for next epoch primary_addr.
cargo r -p iota -- move test -p crates/iota-framework/packages/iota-system/ test_validator_update_metadata_okcargo r -p iota -- move test -p crates/iota-framework/packages/iota-system/ test_validator_update_metadata_invalid_primary_addr_udpcargo r -p iota -- move test -p crates/iota-framework/packages/iota-system/ test_validator_update_metadata_valid_primary_addr_tcpCheck we enforce TCP for primary_address at genesis
This test checks this:
cargo t -p iota-genesis-builder -- ceremony_with_invalid_primary_addressCheck
validator.infoafter each time running the cmds below, make sureprimary_addressuses tcp instead of udp and all addresses use this multiaddr format ip4/ip6/dns correctly depending on the address input of the cmd.Change checklist
Tick the boxes that are relevant to your changes, and delete any items that are not.