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

Remove tpu ip argument #97

Merged
merged 1 commit into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions transaction-relayer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,6 @@ static GLOBAL: Jemalloc = Jemalloc;
#[derive(Parser, Debug)]
#[clap(author, version, about, long_about = None)]
struct Args {
/// IP address to bind to for transaction packets
#[arg(long, env, default_value_t = IpAddr::V4(std::net::Ipv4Addr::new(0, 0, 0, 0)))]
tpu_bind_ip: IpAddr,

/// Port to bind to advertise for TPU
/// NOTE: There is no longer a socket created at this port since UDP transaction receiving is
/// deprecated.
Expand Down Expand Up @@ -214,14 +210,14 @@ struct Sockets {

fn get_sockets(args: &Args) -> Sockets {
let (tpu_quic_bind_port, mut tpu_quic_sockets) = multi_bind_in_range(
args.tpu_bind_ip,
IpAddr::V4(Ipv4Addr::from([0, 0, 0, 0])),
(args.tpu_quic_port, args.tpu_quic_port + 1),
1,
)
.expect("to bind tpu_quic sockets");

let (tpu_fwd_quic_bind_port, mut tpu_fwd_quic_sockets) = multi_bind_in_range(
args.tpu_bind_ip,
IpAddr::V4(Ipv4Addr::from([0, 0, 0, 0])),
(args.tpu_quic_fwd_port, args.tpu_quic_fwd_port + 1),
1,
)
Expand Down