mev-boost-relay
mev-boost-relay copied to clipboard
feat: Integrate mev-commit functionality into relay
📝 Summary
This PR integrates mev-commit functionality into the relay, enabling support for mev-commit registered validators and builders.
⛱ 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
- The housekeeper has 2 added duties:
- 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
- mev-commit documentation: Link Here
✅ 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