Skip to content

Conversation

@ckartik
Copy link

@ckartik ckartik commented Oct 14, 2024

📝 Summary

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

⛱ Motivation and Context

This enhancement provides a more structured approach to block submission, focusing on whitelist-based validation to support preconfirmation protocols like mev-commit. It constrains block submissions to vetted builders during a validator’s purposing slot if opted into whitelist filtering.

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

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

@ckartik ckartik marked this pull request as ready for review October 14, 2024 16:23
ckartik and others added 9 commits October 14, 2024 17:29
* feat: stores validator opted in status in proposer duties map

* feat: clean up mevcommit validator redis keys

* feat: verifies correct encoding

* chore: ensures we trim prefix to adhere to contract format

* feat: also removes redundant builder cleanup
…e memory (#5)

* feat: first checks builder cache for opt in status

* nit: clean up

* nit: fix bracket order

* chore: remove dupe not ok

* nit: adds testing

* feat: adds builder pubkey to test

* nit: remove todo as implmentation is complete
@ckartik ckartik changed the title feat: Integrate mev-commit functionality into relay feat: Enhance relay with whitelist filtering capability for validator and builder selection Oct 29, 2024
ckartik and others added 3 commits January 7, 2025 13:35
* chore: remove break as multibls keys

* chore: update relay contracts-abi to v1.0.0
* feat: adds graceful handling of event processing

* nit: fix client type

* chore: updates client for iterated filtering

* chore: remove nit log

* chore: passes log into client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant