Use the pointers below to determine whether an upcoming proposer has opted in to mev-commit or not.
getNumberOfStakedValidators
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.