From 96029a68008a35e8ea79dfb1b613a2515a1b822a Mon Sep 17 00:00:00 2001 From: Nina Date: Wed, 22 Apr 2026 11:51:02 +0100 Subject: [PATCH] fix --- crates/common/src/config/mux.rs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/crates/common/src/config/mux.rs b/crates/common/src/config/mux.rs index 27950d1c..55912a13 100644 --- a/crates/common/src/config/mux.rs +++ b/crates/common/src/config/mux.rs @@ -431,12 +431,17 @@ async fn fetch_ssv_pubkeys( page += 1; if fetched < MAX_PER_PAGE { - ensure!( - pubkeys.len() == response.pagination.total, - "expected {} keys, got {}", - response.pagination.total, - pubkeys.len() - ); + // Past-end page (fetched == 0) returns pagination.total == 0 from the SSV + // public API; only assert the total when the page actually carried + // data. + if fetched > 0 { + ensure!( + pubkeys.len() == response.pagination.total, + "expected {} keys, got {}", + response.pagination.total, + pubkeys.len() + ); + } break; } }