Skip to content

Commit

Permalink
Document restart function
Browse files Browse the repository at this point in the history
  • Loading branch information
jbearer committed Aug 12, 2024
1 parent 6f623e6 commit 3baddea
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions sequencer/src/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ impl<N: ConnectedNetwork<PubKey>, P: SequencerPersistence, Ver: StaticVersionTyp
}
}

#[allow(clippy::too_many_arguments)]
async fn handle_events<Ver: StaticVersionType>(
node_id: u64,
mut events: impl Stream<Item = Event<SeqTypes>> + Unpin,
Expand Down
5 changes: 5 additions & 0 deletions sequencer/src/restart_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,11 @@ impl TestNetwork {
.unwrap();
}

/// Restart indicated number of DA and non-DA nodes.
///
/// If possible (less than a quorum of nodes have been stopped), check that remaining nodes can
/// still make progress without the restarted nodes. In any case, check that the network as a
/// whole makes progress once the restarted nodes are back online.
async fn restart(&mut self, da_nodes: usize, regular_nodes: usize) {
tracing::info!(da_nodes, regular_nodes, "shutting down some nodes");
join_all(
Expand Down

0 comments on commit 3baddea

Please sign in to comment.