Skip to content
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

bloXroute MEV Validator #1

Open
wants to merge 33 commits into
base: v1.2.15
Choose a base branch
from

Conversation

Uri-Margalit-bloXroute
Copy link

@Uri-Margalit-bloXroute Uri-Margalit-bloXroute commented Jul 13, 2023

Description

This PR allows a validator node to utilize bloXroute MEV services. The validator node

registers itself to MEV relay upon restart or an epoch change
processes eth_proposedBlock from MEV relays

Rationale

The introduction of mev-boost in Ethereum enabled a win-win situation for Searchers, Block builders and Proposers which allows all three to profit off of potential arbitrage opportunities, and do so not at the expense of other traders and dApps executing transactions on chain.

This PR implements the validator to MEV relay integration

Example

eth_proposedBlock endpoint receives

{
   "id": "1",
   "method": "eth_proposedBlock",
   "params": [{
      "mevRelay": "bloXroute",
      "blockNumber": "0xba10d0",
      "prevBlockHash": "0xabc123...555",
      "blockReward": 1230000000000000,
      "gasLimit": 140000000,
      "gasUsed": 70000000,
      "payload": ["ab..ab", "cd..cd"],
   }]
}

Changes

Notable changes:

  • Added couple of startup argument
    • miner.mevrelays - list of uris of MEV relays the validator works with
    • miner.mevproposedblockuri - the callback uri which the MEV relay should send the proposed blocks
  • Added web3 endpoint eth_proposedBlock - the MEV relays use this endpoint to send their proposed blocks
  • Added a logic in the miner to validate the proposed blocks from the MEV relays and consider them when the validator choose which block it should propose

@Uri-Margalit-bloXroute Uri-Margalit-bloXroute changed the title bloXroute mev validator bloXroute MEV Validator Jul 17, 2023
@Uri-Margalit-bloXroute Uri-Margalit-bloXroute changed the base branch from master to v1.2.12 September 27, 2023 14:41
@KlshnkvMV KlshnkvMV changed the base branch from v1.2.12 to v1.2.15 December 5, 2023 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants