Skip to content

Commit

Permalink
Merge branch 'master' into jl/rm_args
Browse files Browse the repository at this point in the history
  • Loading branch information
jedleggett authored Jan 22, 2024
2 parents b03dfc5 + 9fbfc13 commit 4fbeef1
Showing 1 changed file with 2 additions and 6 deletions.
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 @@ -206,14 +202,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

0 comments on commit 4fbeef1

Please sign in to comment.