Skip to content

Commit

Permalink
fix: remove limit of 50 on async beacon _get_validators
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamchello committed Apr 19, 2024
1 parent 9122a4c commit bf822fe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions web3_utils/async_beacon.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf822fe

Please sign in to comment.