Skip to content

Commit

Permalink
Add logs for ip:port (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
buffalu authored Apr 10, 2024
1 parent e5c3705 commit f1165c4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
4 changes: 1 addition & 3 deletions core/src/tpu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ use solana_core::{
};
use solana_sdk::{pubkey::Pubkey, signature::Keypair};
use solana_streamer::{
nonblocking::quic::DEFAULT_WAIT_FOR_CHUNK_TIMEOUT,
quic::{spawn_server, MAX_STAKED_CONNECTIONS},
streamer::StakedNodes,
nonblocking::quic::DEFAULT_WAIT_FOR_CHUNK_TIMEOUT, quic::spawn_server, streamer::StakedNodes,
};

use crate::{fetch_stage::FetchStage, staked_nodes_updater_service::StakedNodesUpdaterService};
Expand Down
19 changes: 18 additions & 1 deletion transaction-relayer/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,24 @@ fn main() {
assert!(args.grpc_bind_ip.is_ipv4(), "must bind to IPv4 address");

let sockets = get_sockets(&args);
info!("Relayer listening at: {sockets:?}");

// make sure to allow your firewall to accept UDP packets on these ports
// if you're using staked overrides, you can provide one of these addresses
// to --rpc-send-transaction-tpu-peer
for s in &sockets.tpu_sockets.transactions_quic_sockets {
info!(
"TPU quic socket is listening at: {}:{}",
public_ip.to_string(),
s.local_addr().unwrap().port()
);
}
for s in &sockets.tpu_sockets.transactions_forwards_quic_sockets {
info!(
"TPU forward quic socket is listening at: {}:{}",
public_ip.to_string(),
s.local_addr().unwrap().port()
);
}

let keypair =
Arc::new(read_keypair_file(args.keypair_path).expect("keypair file does not exist"));
Expand Down

0 comments on commit f1165c4

Please sign in to comment.