Skip to content

Commit

Permalink
Show node address (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
WuBruno authored Feb 5, 2024
1 parent a9fef6d commit b733fc3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion products/bridge/bridge-validators/src/validator_node.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use std::{collections::HashMap, time::Duration};

use anyhow::Result;
use ethers::{providers::StreamExt, types::U256};
use ethers::{providers::StreamExt, signers::Signer, types::U256};
use libp2p::{Multiaddr, PeerId};
use tokio::{
select,
Expand Down Expand Up @@ -52,6 +52,8 @@ impl ValidatorNode {
let mut chain_clients = HashMap::new();
let wallet = config.private_key.as_wallet()?;

println!("Node address is: {:?}", wallet.address());

let (bridge_message_sender, bridge_message_receiver) = mpsc::unbounded_channel();
let bridge_message_receiver = UnboundedReceiverStream::new(bridge_message_receiver);

Expand Down

0 comments on commit b733fc3

Please sign in to comment.