Skip to content

Commit 221f8c9

Browse files
authored
CBST2-13: Return early if no keys in LIDO registry (#299)
1 parent 0661f17 commit 221f8c9

File tree

1 file changed

+4
-0
lines changed
  • crates/common/src/config

1 file changed

+4
-0
lines changed

crates/common/src/config/mux.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ async fn fetch_lido_registry_keys(
242242
let total_keys =
243243
registry.getTotalSigningKeyCount(node_operator_id).call().await?._0.try_into()?;
244244

245+
if total_keys == 0 {
246+
return Ok(Vec::new());
247+
}
248+
245249
debug!("fetching {total_keys} total keys");
246250

247251
const CALL_BATCH_SIZE: u64 = 250u64;

0 commit comments

Comments
 (0)