Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions crates/node/src/args.rs
Original file line number Diff line number Diff line change
Expand Up @@ -430,21 +430,16 @@ impl ConsensusArgs {
}

/// The consensus algorithm to use.
#[derive(Debug, clap::ValueEnum, Clone, PartialEq, Eq)]
#[derive(Debug, Default, clap::ValueEnum, Clone, PartialEq, Eq)]
pub enum ConsensusAlgorithm {
/// System contract consensus with an optional authorized signer. If the authorized signer is
/// not provided the system will use the L1 provider to query the authorized signer from L1.
#[default]
SystemContract,
/// No-op consensus that does not validate blocks.
Noop,
}

impl Default for ConsensusAlgorithm {
fn default() -> Self {
Self::SystemContract
}
}

/// The engine driver args.
#[derive(Debug, Clone, clap::Args)]
pub struct EngineDriverArgs {
Expand Down
9 changes: 2 additions & 7 deletions crates/sequencer/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,15 @@ pub type PayloadBuildingJobFuture =
Pin<Box<dyn Future<Output = Result<ScrollPayloadAttributes, SequencerError>> + Send>>;

/// Configuration for L1 message inclusion strategy.
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Default, Clone, Copy)]
pub enum L1MessageInclusionMode {
/// Include L1 messages based on block depth.
BlockDepth(u64),
/// Include only finalized L1 messages.
#[default]
Finalized,
}

impl Default for L1MessageInclusionMode {
fn default() -> Self {
Self::Finalized
}
}

impl FromStr for L1MessageInclusionMode {
type Err = String;

Expand Down
Loading