@@ -30,7 +30,6 @@ pub struct ProofsFetcher {
3030 rpc_provider : RPCProvider ,
3131 aligned_service_manager : AlignedLayerServiceManagerContract ,
3232 last_aggregated_block : u64 ,
33- pre_verification_enabled : bool ,
3433}
3534
3635impl ProofsFetcher {
@@ -49,7 +48,6 @@ impl ProofsFetcher {
4948 rpc_provider,
5049 aligned_service_manager,
5150 last_aggregated_block,
52- pre_verification_enabled : config. pre_verification_enabled ,
5351 }
5452 }
5553
@@ -120,14 +118,10 @@ impl ProofsFetcher {
120118
121119 let elf = p. vm_program_code ?;
122120 let proof_with_pub_values = bincode:: deserialize ( & p. proof ) . ok ( ) ?;
123- let sp1_proof = if self . pre_verification_enabled {
124- SP1ProofWithPubValuesAndElf :: new_with_verification (
125- proof_with_pub_values,
126- elf,
127- )
128- } else {
129- Ok ( SP1ProofWithPubValuesAndElf :: new ( proof_with_pub_values, elf) )
130- } ;
121+ let sp1_proof = SP1ProofWithPubValuesAndElf :: new_with_verification (
122+ proof_with_pub_values,
123+ elf,
124+ ) ;
131125
132126 match sp1_proof {
133127 Ok ( proof) => Some ( AlignedProof :: SP1 ( proof. into ( ) ) ) ,
@@ -152,11 +146,8 @@ impl ProofsFetcher {
152146 bincode:: deserialize ( & p. proof ) . ok ( ) ?;
153147
154148 let receipt = Receipt :: new ( inner_receipt, public_inputs) ;
155- let risc0_proof = if self . pre_verification_enabled {
156- Risc0ProofReceiptAndImageId :: new_with_verification ( image_id, receipt)
157- } else {
158- Ok ( Risc0ProofReceiptAndImageId :: new ( image_id, receipt) )
159- } ;
149+ let risc0_proof =
150+ Risc0ProofReceiptAndImageId :: new_with_verification ( image_id, receipt) ;
160151
161152 match risc0_proof {
162153 Ok ( proof) => Some ( AlignedProof :: Risc0 ( proof. into ( ) ) ) ,
0 commit comments