We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 77f11ec commit a371ce8Copy full SHA for a371ce8
1 file changed
crates/common/src/config/mux.rs
@@ -476,12 +476,17 @@ async fn fetch_ssv_pubkeys_from_public_api(
476
page += 1;
477
478
if fetched < MAX_PER_PAGE {
479
- ensure!(
480
- pubkeys.len() == response.pagination.total,
481
- "expected {} keys, got {}",
482
- response.pagination.total,
483
- pubkeys.len()
484
- );
+ // 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,
485
+ "expected {} keys, got {}",
486
+ response.pagination.total,
487
+ pubkeys.len()
488
+ );
489
+ }
490
break;
491
}
492
0 commit comments