From bf822feaf6725f4afa7dbeee91bf6e738e779e01 Mon Sep 17 00:00:00 2001 From: fishy Date: Sat, 20 Apr 2024 00:00:08 +0200 Subject: [PATCH] fix: remove limit of 50 on async beacon _get_validators --- web3_utils/async_beacon.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/web3_utils/async_beacon.py b/web3_utils/async_beacon.py index f33c20d..3698b71 100644 --- a/web3_utils/async_beacon.py +++ b/web3_utils/async_beacon.py @@ -67,9 +67,6 @@ def _get_validator(self, pubkey: str, state_id: str = "head"): raise e def _get_validators(self, state_id: str = "head", indexes: List[str] = None, params: Dict[str, Any] = {}) -> Dict[str, Any]: - if indexes is not None and len(indexes) > 50: - raise Exception("Too many validators requested") - endpoint = f"/eth/v1/beacon/states/{state_id}/validators" if indexes is not None: params["id"] = indexes