1- use crate :: {
2- coordinator_handler:: ProverType ,
3- prover:: { CircuitType , ProofType } ,
4- } ;
1+ use crate :: { coordinator_handler:: ProverType , prover:: ProofType } ;
52use anyhow:: { anyhow, Result } ;
63use dotenv:: dotenv;
74use serde:: { Deserialize , Serialize } ;
@@ -14,7 +11,6 @@ pub struct Config {
1411 pub keys_dir : String ,
1512 pub db_path : Option < String > ,
1613 pub coordinator : CoordinatorConfig ,
17- pub l2geth : Option < L2GethConfig > ,
1814 pub prover : ProverConfig ,
1915 #[ serde( default = "default_health_listener_addr" ) ]
2016 pub health_listener_addr : String ,
@@ -28,14 +24,8 @@ pub struct CoordinatorConfig {
2824 pub connection_timeout_sec : u64 ,
2925}
3026
31- #[ derive( Debug , Serialize , Deserialize , Clone ) ]
32- pub struct L2GethConfig {
33- pub endpoint : String ,
34- }
35-
3627#[ derive( Debug , Serialize , Deserialize , Clone ) ]
3728pub struct ProverConfig {
38- pub circuit_type : CircuitType ,
3929 pub supported_proof_types : Vec < ProofType > ,
4030 pub circuit_version : String ,
4131 #[ serde( default = "default_n_workers" ) ]
@@ -93,11 +83,6 @@ impl Config {
9383 if let Some ( val) = Self :: get_env_var ( "COORDINATOR_BASE_URL" ) ? {
9484 self . coordinator . base_url = val;
9585 }
96- if let Some ( val) = Self :: get_env_var ( "L2GETH_ENDPOINT" ) ? {
97- if let Some ( l2geth) = & mut self . l2geth {
98- l2geth. endpoint = val;
99- }
100- }
10186
10287 if let Some ( val) = Self :: get_env_var ( "PROOF_TYPES" ) ? {
10388 let values_vec: Vec < & str > = val
@@ -129,28 +114,6 @@ impl Config {
129114 }
130115
131116 pub fn coordinator_prover_type ( & self ) -> Vec < ProverType > {
132- if self . prover . circuit_type == CircuitType :: OpenVM {
133- vec ! [ ProverType :: OpenVM ]
134- } else {
135- let mut prover_types = vec ! [ ] ;
136- if self
137- . prover
138- . supported_proof_types
139- . iter ( )
140- . any ( |t| * t == ProofType :: Bundle || * t == ProofType :: Batch )
141- {
142- prover_types. push ( ProverType :: Batch )
143- }
144-
145- if self
146- . prover
147- . supported_proof_types
148- . contains ( & ProofType :: Chunk )
149- {
150- prover_types. push ( ProverType :: Chunk )
151- }
152-
153- prover_types
154- }
117+ vec ! [ ProverType :: OpenVM ]
155118 }
156119}
0 commit comments