mev-commit icon indicating copy to clipboard operation
mev-commit copied to clipboard

Ensure all queries to L1 contracts are with respect to latest finalized block

Open shaspitz opened this issue 1 year ago • 0 comments

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 transferInitiated events from 64 blocks in the past (worst case scenario finalization time), when it could be using the actual finalization time which varies.

shaspitz avatar Oct 07 '24 21:10 shaspitz