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

Add logs for ip:port #123

Merged
merged 4 commits into from
Apr 10, 2024
Merged
Show file tree
Hide file tree
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
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(),
Copy link
Contributor

Choose a reason for hiding this comment

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

to_string() probably not needed

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
Loading