diff --git a/applications/tari_validator_node/src/dan_node.rs b/applications/tari_validator_node/src/dan_node.rs index 4927c027c4..6f8076ffab 100644 --- a/applications/tari_validator_node/src/dan_node.rs +++ b/applications/tari_validator_node/src/dan_node.rs @@ -75,11 +75,11 @@ impl DanNode { }); } - // loop { - // For other work - //} + loop { + // other work here - Ok(()) + time::sleep(Duration::from_secs(120)).await; + } } async fn find_and_accept_constitutions( diff --git a/applications/tari_validator_node/src/main.rs b/applications/tari_validator_node/src/main.rs index 19df452a75..268ff130a5 100644 --- a/applications/tari_validator_node/src/main.rs +++ b/applications/tari_validator_node/src/main.rs @@ -148,9 +148,12 @@ async fn run_node(config: &ApplicationConfig) -> Result<(), ExitError> { if let Some(address) = config.validator_node.grpc_address.clone() { task::spawn(run_grpc(grpc_server, address, shutdown.to_signal())); } - info!("🚀 Validator node started!"); - info!("{}", node_identity); - run_dan_node(config.validator_node.clone(), node_identity).await?; + + println!("🚀 Validator node started!"); + println!("{}", node_identity); + + run_dan_node(config.validator_node.clone(), node_identity.clone()).await?; + Ok(()) }