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

feat: stronger builder attribution

Open ckartik opened this issue 1 year ago • 0 comments

Describe your changes

This PR introduces a new feature to fetch and utilize relay data in the MEV oracle. Key changes include:

  1. Added a new CLI flag relay-urls to specify URLs for relays.
  2. Implemented a new watchRelays function in the L1Listener to periodically fetch data from specified relays.
  3. Created a RelayData struct to store and manage relay information.
  4. Modified the watchL1Block function to use the fetched builder public key.
  5. Added error handling and logging for relay data fetching.
  6. Updated the NewL1Listener function to accept relay URLs as a parameter.
  7. Made corresponding changes to tests and the node.go file to accommodate the new relay functionality.

These changes allow the oracle to fetch and utilize real-time data from multiple relays, enhancing its ability to track and verify block proposers beyond the simple grafiti approach.

This PR will go along with contract changes that both utilize the BLS key in builder attribution, and easy retrieval of provider address form BLS key.

Issue ticket number and link

Fixes # (issue)

Checklist before requesting a review

  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have made corresponding changes to the documentation

ckartik avatar Oct 10 '24 16:10 ckartik