mev-boost-relay icon indicating copy to clipboard operation
mev-boost-relay copied to clipboard

feat: Integrate mev-commit functionality into relay

Open ckartik opened this issue 4 months ago • 0 comments

📝 Summary

This PR integrates mev-commit functionality into the relay, enabling support for mev-commit registered validators and builders. image

⛱ Motivation and Context

The integration of mev-commit allows for a more concrete implementation of preconfirmations, via the constraining of block submissions to mev-commit enabled block builders during the purposing slot of a validator that has opted into the mev-commit preconfirmations protocol.

Key changes include:

  • New MevCommitClient to interact with mev-commit contracts
  • Update Housekeeper to periodically sync mev-commit validator and builder registrations
    • The housekeeper has 2 added duties:
      • Monitor all builder registrations and de-registrations on the mev-commit platform
      • Load all the validators registered in mev-commit that are responsible for proposing a block in the next two epochs
  • Modify block submission handling to check mev-commit registration status, and if a validator and builder is opted-in.
  • Add Redis caching for mev-commit registration data

📚 References


✅ I have run these commands

  • [X] make lint
  • [X] make test-race
  • [X] go mod tidy
  • [x] I have seen and agree to CONTRIBUTING.md

ckartik avatar Oct 14 '24 01:10 ckartik