mev-commit
mev-commit copied to clipboard
Ensure all queries to L1 contracts are with respect to latest finalized block
For simplicity (ie. to avoid edge cases) all client code should query any L1 contract using the latest finalized block, ensuring the client code to be reorg resistant. Relevant queries that need changes:
- mev-commit p2p's querying for proposers api, which currently queries the validator opt-in router from the current l1 block.
- Mev-commit bridge relayer blindly waits for
transferInitiatedevents from 64 blocks in the past (worst case scenario finalization time), when it could be using the actual finalization time which varies.