Set of Opted-in Validators
The validator registry contract maintains a set of validators who are opted in to the mev-commit protocol. This is achieved by requiring those validators to stake ether with the registry on behalf of their BLS public key. Anyone can query the full set of validator pubkeys who have opted in to mev-commit by calling thegetNumberOfStakedValidators
function in conjunction with getStakedValidators
on the validator registry contract. See the following signatures:
stakedValsetVersion
is updated on-chain anytime the set of opted-in validators changes. This value can be used for debugging and/or as an optimistic locking mechanism to ensure the set of validators hasn’t changed during a batch query.
That is, if all queries in a batch return the same stakedValsetVersion
, the aggregate staked validator set is valid. Otherwise handling is left to the user (who will likely retry the batch query).
Note geth supports batched RPC requests which can be used to speed up this process.