Skip to content

Commit

Permalink
Turn off gossip (MystenLabs#1745)
Browse files Browse the repository at this point in the history
Co-authored-by: George Danezis <george@danez.is>
  • Loading branch information
gdanezis and George Danezis authored May 3, 2022
1 parent 1ca63c2 commit c3ee146
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions sui/src/sui_commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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
};
Expand Down

0 comments on commit c3ee146

Please sign in to comment.