File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
batcher/aligned-batcher/src Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ pub struct Batcher {
8181 pre_verification_is_enabled : bool ,
8282 non_paying_config : Option < NonPayingConfig > ,
8383 posting_batch : Mutex < bool > ,
84+ disabled_verifiers : Mutex < U256 > ,
8485}
8586
8687impl Batcher {
@@ -212,6 +213,12 @@ impl Batcher {
212213 None
213214 } ;
214215
216+ let disabled_verifiers = match service_manager. disabled_verifiers ( ) . call ( ) . await {
217+ Ok ( disabled_verifiers) => Ok ( disabled_verifiers) ,
218+ Err ( _) => service_manager_fallback. disabled_verifiers ( ) . call ( ) . await ,
219+ }
220+ . expect ( "Failed to get disabled verifiers" ) ;
221+
215222 Self {
216223 s3_client,
217224 s3_bucket_name,
@@ -232,6 +239,7 @@ impl Batcher {
232239 non_paying_config,
233240 posting_batch : Mutex :: new ( false ) ,
234241 batch_state : Mutex :: new ( batch_state) ,
242+ disabled_verifiers : Mutex :: new ( disabled_verifiers) ,
235243 }
236244 }
237245
You can’t perform that action at this time.
0 commit comments