Skip to content

Commit

Permalink
Make sure the dan node stays running
Browse files Browse the repository at this point in the history
  • Loading branch information
brianp committed Jun 9, 2022
1 parent 56c95d0 commit 2659a53
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 4 additions & 4 deletions applications/tari_validator_node/src/dan_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
9 changes: 6 additions & 3 deletions applications/tari_validator_node/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}

Expand Down

0 comments on commit 2659a53

Please sign in to comment.