Skip to content

Commit

Permalink
Add log for genesis block request
Browse files Browse the repository at this point in the history
  • Loading branch information
raychu86 committed Aug 22, 2022
1 parent 63c20d7 commit 937dc5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions snarkos/network/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ pub async fn handle_listener<N: Network>(listener: TcpListener, ledger: Arc<Ledg
// because the node has not established the leader as a peer.
/// Request the genesis block from the leader.
pub(super) async fn request_genesis_block<N: Network>(leader_ip: &SocketAddr) -> Result<Block<N>> {
info!("Requesting genesis block from {}", leader_ip);
let ip = leader_ip.ip();
let block_string = reqwest::get(format!("http://{ip}/testnet3/block/0")).await?.text().await?;

Expand Down

0 comments on commit 937dc5d

Please sign in to comment.