-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: stronger builder attribution #432
Conversation
c41b3f8
to
7950e6e
Compare
) external onlyOracle whenNotPaused { | ||
address _winner = blockBuilderNameToAddress[_winnerGraffiti]; | ||
address _winner = _providerRegistry.getEoaFromBLSKey(_winnerBLSKey); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I plan to remove the concept of a builder in the blocktracker, retaining only the BLS key responsible for building the block number. However, due to an ongoing audit, I will maintain the current approach to minimize changes to the contract architecture.
oracle/cmd/main.go
Outdated
EnvVars: []string{"MEV_ORACLE_RELAY_URLS"}, | ||
Value: cli.NewStringSlice( | ||
"https://boost-relay.flashbots.net/relay/v1/data/bidtraces/proposer_payload_delivered", | ||
"https://bloxroute.max-profit.blxrbdn.com/relay/v1/data/bidtraces/proposer_payload_delivered", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to have a clean way to decision if these should be holesky v.s mainnet values.
Duplicated by #468 |
Describe your changes
This PR introduces a new feature to fetch and utilize relay data in the MEV oracle. Key changes include:
relay-urls
to specify URLs for relays.watchRelays
function in theL1Listener
to periodically fetch data from specified relays.RelayData
struct to store and manage relay information.watchL1Block
function to use the fetched builder public key.NewL1Listener
function to accept relay URLs as a parameter.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