arbos/engine.rs
1use alloy_primitives::U256;
2
3/// Arbitrum consensus engine configuration.
4#[derive(Debug, Clone)]
5pub struct ArbEngine {
6 pub is_sequencer: bool,
7}
8
9impl ArbEngine {
10 pub fn new(is_sequencer: bool) -> Self {
11 Self { is_sequencer }
12 }
13}
14
15/// Difficulty for Arbitrum blocks is always 1.
16pub const ARB_BLOCK_DIFFICULTY: U256 = U256::from_limbs([1, 0, 0, 0]);