Allow filtering of validators by top-level validator status #7141
Labels
good first issue
Issues that are suitable for first-time contributors.
hacktoberfest
https://hacktoberfest.com/
help wanted
The author indicates that additional help is wanted.
Right now, Lodestar does not support filtering response of getStateValidators by top-level validator statuses such as
active
as we only consider the more accurate sub statuses likeactive_ongoing
,active_exiting
andactive_slashed
.As per beacon-api spec we should support
active
,pending
,exited
, andwithdrawal
(validators.yaml#L38).Related code
lodestar/packages/beacon-node/src/api/impl/beacon/state/utils.ts
Line 132 in 955f456
The text was updated successfully, but these errors were encountered: