From 4ccdcbe78af2c15a9c09f69a4c76fbe3838ca52a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20I=C3=B1aki=20Bilbao?= Date: Tue, 29 Apr 2025 14:01:52 -0300 Subject: [PATCH] Return early if no keys in LIDO registry --- crates/common/src/config/mux.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/common/src/config/mux.rs b/crates/common/src/config/mux.rs index ef0f1125..a20a0217 100644 --- a/crates/common/src/config/mux.rs +++ b/crates/common/src/config/mux.rs @@ -240,6 +240,10 @@ async fn fetch_lido_registry_keys( let total_keys = registry.getTotalSigningKeyCount(node_operator_id).call().await?._0.try_into()?; + if total_keys == 0 { + return Ok(Vec::new()); + } + debug!("fetching {total_keys} total keys"); const CALL_BATCH_SIZE: u64 = 250u64;