Skip to content

Commit

Permalink
and again
Browse files Browse the repository at this point in the history
  • Loading branch information
pompon0 committed Dec 11, 2024
1 parent 582bcee commit c2bfff0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node/components/bft/src/testonly/twins/scenario.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,19 @@ where

/// The configuration for a single round of P phases.
pub struct RoundConfig<'a, T: HasKey, const P: usize> {
/// Leader of the round.
pub leader: &'a T::Key,
/// Partitioning of the nodes for each phase.
pub phase_partitions: [Split<'a, T>; P],
}

/// Configuration for a number of rounds.
pub struct Scenario<'a, T: HasKey, const P: usize> {
/// Rounds to simulate.
pub rounds: Vec<RoundConfig<'a, T, P>>,
}

/// Generator of scenarios according to the spec.
pub struct ScenarioGenerator<'a, T, const P: usize>
where
T: Twin,
Expand Down

0 comments on commit c2bfff0

Please sign in to comment.