From c3ee146af546ccf3d049098551741fef54b00dd6 Mon Sep 17 00:00:00 2001 From: George Danezis Date: Tue, 3 May 2022 20:02:44 +0100 Subject: [PATCH] Turn off gossip (#1745) Co-authored-by: George Danezis --- sui/src/sui_commands.rs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/sui/src/sui_commands.rs b/sui/src/sui_commands.rs index 6930cfc7e38e3..8a481dfa80759 100644 --- a/sui/src/sui_commands.rs +++ b/sui/src/sui_commands.rs @@ -643,7 +643,7 @@ pub async fn make_authority( // If we have network information make authority clients // to all authorities in the system. - let _active_authority = if let Some(network) = net_parameters { + let _active_authority: Option<()> = if let Some(network) = net_parameters { let mut authority_clients = BTreeMap::new(); for info in &network { let client = NetworkAuthorityClient::new(NetworkClient::new( @@ -656,10 +656,13 @@ pub async fn make_authority( authority_clients.insert(info.name, client); } - let active_authority = ActiveAuthority::new(authority_state.clone(), authority_clients)?; + let _active_authority = ActiveAuthority::new(authority_state.clone(), authority_clients)?; - let join_handle = active_authority.spawn_all_active_processes().await; - Some(join_handle) + // TODO: turn on to start the active part of validators + // + // let join_handle = active_authority.spawn_all_active_processes().await; + // Some(join_handle) + None } else { None };