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

Implement a way to retrieve the MEV reward without looking at logs #24

Open
AlexSSD7 opened this issue Feb 28, 2021 · 2 comments
Open

Comments

@AlexSSD7
Copy link

Rationale

Right now, the only way to understand what MEV reward was received is to look for it manually inside the mev-geth logs. This method of data retrieval doesn't scale and is not really an idiomatic way. What I propose is to store each MEV block reward in the database, and make it retrievable remotely via RPC.

Implementation

Ideally, the MEV block reward should be accessible via these two options:

  1. eth_getBlock request -> contains mevReward field.
  2. mev_getReward RPC method -> returns the MEV reward for specific block. (I like this option more)

Also, it is crucial to have the correct reward recorded across all network nodes. This will require not just logging the reward on the mining node, but also implementing a standardized network-wide way to know the MEV reward of the block, so the MEV reward can be synced.

@thegostep
Copy link

Thank you for the suggestion!

We've discussed how we could do this but have not found any quick fix that would make it possible to isolate mevReward from other fees. This is something we will add to our long term roadmap.

@thegostep
Copy link

Related discussion: flashbots/pm#46

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

No branches or pull requests

2 participants