Skip to content

Commit

Permalink
fix: conflicts_with_all fake_leader (#1855)
Browse files Browse the repository at this point in the history
  • Loading branch information
carneiro-cw authored Nov 8, 2024
1 parent 87ea414 commit 155f474
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ impl CommonConfig {
#[derive(DebugAsJson, Clone, Parser, derive_more::Deref, serde::Serialize)]
#[clap(group = ArgGroup::new("mode").required(true).args(&["leader", "follower"]))]
pub struct StratusConfig {
#[arg(long = "leader", env = "LEADER", conflicts_with_all = ["follower", "fake-leader", "ImporterConfig"])]
#[arg(long = "leader", env = "LEADER", conflicts_with_all = ["follower", "fake_leader", "ImporterConfig"])]
pub leader: bool,

#[arg(long = "follower", env = "FOLLOWER", conflicts_with_all = ["leader", "fake-leader"], requires = "ImporterConfig")]
#[arg(long = "follower", env = "FOLLOWER", conflicts_with_all = ["leader", "fake_leader"], requires = "ImporterConfig")]
pub follower: bool,

/// The fake leader imports blocks like a follower, but executes the blocks's txs locally like a leader.
Expand Down

0 comments on commit 155f474

Please sign in to comment.