mev-commit
mev-commit copied to clipboard
feat: stronger builder attribution
Describe your changes
This PR introduces a new feature to fetch and utilize relay data in the MEV oracle. Key changes include:
- Added a new CLI flag
relay-urlsto specify URLs for relays. - Implemented a new
watchRelaysfunction in theL1Listenerto periodically fetch data from specified relays. - Created a
RelayDatastruct to store and manage relay information. - Modified the
watchL1Blockfunction to use the fetched builder public key. - Added error handling and logging for relay data fetching.
- Updated the
NewL1Listenerfunction to accept relay URLs as a parameter. - Made corresponding changes to tests and the
node.gofile 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