Skip to content

Commit 1a8c29c

Browse files
committed
feat: add disabled verifiers to the batch struct
1 parent 6924fa8 commit 1a8c29c

File tree

1 file changed

+8
-0
lines changed
  • batcher/aligned-batcher/src

1 file changed

+8
-0
lines changed

batcher/aligned-batcher/src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff 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

8687
impl 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

0 commit comments

Comments
 (0)