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

Derive narwhal ports from sui #1518

Merged
merged 1 commit into from
Apr 21, 2022
Merged

Derive narwhal ports from sui #1518

merged 1 commit into from
Apr 21, 2022

Conversation

asonnino
Copy link
Contributor

The narwhal node need a committee file, it is now derived from the Sui committee file. The narwhal primary and workers already bind to 0.0.0.0: https://github.com/MystenLabs/narwhal/blob/6788cf3da00b94b72a9dcc16e9da199e18ba6e37/primary/src/primary.rs#L142

@asonnino asonnino requested a review from mystenmark April 21, 2022 17:11
@asonnino
Copy link
Contributor Author

@mystenmark Is this compatible with your devnet setup?

@asonnino asonnino self-assigned this Apr 21, 2022
@asonnino asonnino added Type: Major Feature Major new functionality or integration, which has a significant impact on the network Status: Needs Review PR is ready for review sui-node labels Apr 21, 2022
@asonnino asonnino requested a review from lxfind April 21, 2022 17:13
@asonnino asonnino enabled auto-merge (squash) April 21, 2022 17:13
.parse()
.unwrap(),
transactions: x.consensus_address,
worker_to_worker: format!("{}:{}", x.host, x.port + 4).parse().unwrap(),
Copy link
Contributor

Choose a reason for hiding this comment

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

ok, so its just using the next 4 ports above the validator port?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes

Copy link
Contributor Author

@asonnino asonnino Apr 21, 2022

Choose a reason for hiding this comment

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

plus the tx-input port (that was already present in the AuthorityPrivateConfig struct)

@mystenmark
Copy link
Contributor

This is great and saves me the work of manually fixing up the narwhal config. Thanks!

@asonnino asonnino merged commit a6762c9 into main Apr 21, 2022
@asonnino asonnino deleted the narwhal-conf branch April 21, 2022 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Review PR is ready for review sui-node Type: Major Feature Major new functionality or integration, which has a significant impact on the network
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants