attestantio / go-eth2-client

Apache License 2.0
102 stars 59 forks source link

Check correctness of ValidatorState value #117

Closed gsora closed 3 months ago

gsora commented 3 months ago

Instead of trusting the value of ValidatorState blindly, check that it is valid: greater or equal to zero, less than the amount of possible validator states, including unknown.