attestantio / go-eth2-client

Apache License 2.0
102 stars 59 forks source link

`ValidatorOpts` does not implement `status` parameter #103

Closed pinebit closed 4 months ago

pinebit commented 5 months ago

In according to the spec, /eth/v1/beacon/states/{state_id}/validators query provides id and status arrays. However, the current implementation ignores status https://github.com/attestantio/go-eth2-client/blob/master/api/validatorsopts.go#L19

Would it be possible and easy to make it matching the spec?

mcdee commented 4 months ago

There was a PR #78 that added this, but it needs to be rebased against current master before continuing. Not sure if the owner of that PR is still interested in the functionality or not.

mcdee commented 4 months ago

This has been added to latest master.