Skip to content

Commit

Permalink
make prover config arg not optional (#1278)
Browse files Browse the repository at this point in the history
  • Loading branch information
exeokan authored Oct 7, 2024
1 parent af745eb commit 84e8fd8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/citrea/src/rollup/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ pub trait CitreaRollupBlueprint: RollupBlueprint {
storage_manager,
init_variant,
Arc::new(prover_service),
Some(prover_config),
prover_config,
code_commitments_by_spec,
fork_manager,
soft_confirmation_tx,
Expand Down
6 changes: 3 additions & 3 deletions crates/prover/src/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ where
sequencer_pub_key: Vec<u8>,
sequencer_da_pub_key: Vec<u8>,
phantom: std::marker::PhantomData<C>,
prover_config: Option<ProverConfig>,
prover_config: ProverConfig,
code_commitments_by_spec: HashMap<SpecId, Vm::CodeCommitment>,
l1_block_cache: Arc<Mutex<L1BlockCache<Da>>>,
sync_blocks_count: u64,
Expand Down Expand Up @@ -107,7 +107,7 @@ where
mut storage_manager: Sm,
init_variant: InitVariant<Stf, Vm, Da::Spec>,
prover_service: Arc<Ps>,
prover_config: Option<ProverConfig>,
prover_config: ProverConfig,
code_commitments_by_spec: HashMap<SpecId, Vm::CodeCommitment>,
fork_manager: ForkManager,
soft_confirmation_tx: broadcast::Sender<u64>,
Expand Down Expand Up @@ -244,7 +244,7 @@ where
};

let ledger_db = self.ledger_db.clone();
let prover_config = self.prover_config.clone().unwrap();
let prover_config = self.prover_config.clone();
let prover_service = self.prover_service.clone();
let da_service = self.da_service.clone();
let sequencer_pub_key = self.sequencer_pub_key.clone();
Expand Down

0 comments on commit 84e8fd8

Please sign in to comment.