From 84e8fd8eddd099d6539d10b902c21acffc793696 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ege=20Okan=20=C3=9Cnald=C4=B1?= <35339130+exeokan@users.noreply.github.com> Date: Mon, 7 Oct 2024 13:28:31 +0300 Subject: [PATCH] make prover config arg not optional (#1278) --- bin/citrea/src/rollup/mod.rs | 2 +- crates/prover/src/runner.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/citrea/src/rollup/mod.rs b/bin/citrea/src/rollup/mod.rs index f6cf5b2ec..6bede76d2 100644 --- a/bin/citrea/src/rollup/mod.rs +++ b/bin/citrea/src/rollup/mod.rs @@ -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, diff --git a/crates/prover/src/runner.rs b/crates/prover/src/runner.rs index 668828389..59fdd973e 100644 --- a/crates/prover/src/runner.rs +++ b/crates/prover/src/runner.rs @@ -63,7 +63,7 @@ where sequencer_pub_key: Vec, sequencer_da_pub_key: Vec, phantom: std::marker::PhantomData, - prover_config: Option, + prover_config: ProverConfig, code_commitments_by_spec: HashMap, l1_block_cache: Arc>>, sync_blocks_count: u64, @@ -107,7 +107,7 @@ where mut storage_manager: Sm, init_variant: InitVariant, prover_service: Arc, - prover_config: Option, + prover_config: ProverConfig, code_commitments_by_spec: HashMap, fork_manager: ForkManager, soft_confirmation_tx: broadcast::Sender, @@ -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();