-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Dynamically bind to available UDP ports in Fullnode #920
Conversation
src/crdt.rs
Outdated
@@ -1353,6 +1354,55 @@ impl TestNode { | |||
}, | |||
} | |||
} | |||
pub fn new_with_external_ip(pubkey: Pubkey, ip: IpAddr) -> TestNode { | |||
fn bind() -> (u16, UdpSocket) { | |||
match udp_random_bind(8000, 10000, 5) { |
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.
Should we use 8001, or maybe 8100, instead of 8000? 8000 is hard coded in places like
Line 55 in bca2294
let bind_addr = SocketAddr::new(IpAddr::V4(Ipv4Addr::new(0, 0, 0, 0)), 8000); |
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 have changed it to 8100 for now. I think, going forward, only NCP port for leader needs to be hardcoded. If someday we add a DNS entry with SRV record, we can potentially remove that as well.
4bdc510
to
6f13fa0
Compare
19b3276
to
1f24fe9
Compare
It needs more work. Looks like wallet is also reading config files to figure out the ports. |
- Also removed hard coding of port range from CRDT
@garious could you pls review when you get a chance? |
…olana-labs#920) Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins) from 16.0.0 to 17.0.0. - [Release notes](https://github.com/rollup/plugins/releases) - [Commits](rollup/plugins@commonjs-v16.0.0...commonjs-v17.0.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
No description provided.