Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Configure p2p port and bootnode ENRs via command line #20

Merged
merged 2 commits into from
May 21, 2021

Conversation

carver
Copy link
Collaborator

@carver carver commented May 20, 2021

Bonus: switch the http port to uint16, which is sufficient for network ports.

carver added 2 commits May 20, 2021 16:33
@carver carver force-pushed the discv5-cli-args branch from 4235d86 to 54f4850 Compare May 21, 2021 00:00
@carver carver requested a review from njgheorghita May 21, 2021 00:02
Copy link
Collaborator

@njgheorghita njgheorghita left a comment

Choose a reason for hiding this comment

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

Looks good!

@@ -6,12 +6,15 @@ use std::ffi::OsString;
pub struct TrinConfig {
pub web3_transport: String,
pub web3_ipc_path: String,
pub web3_http_port: u32,
pub web3_http_port: u16,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah, this is basically like a hangover coming from python land when I'm used to treating all integers as the same type (u32) - need to drink some coffee and sober up here in rust world.

@carver carver merged commit 5054a75 into master May 21, 2021
@carver carver deleted the discv5-cli-args branch May 21, 2021 18:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants