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

feat: support MEV #2214

Closed
wants to merge 3 commits into from
Closed

feat: support MEV #2214

wants to merge 3 commits into from

Conversation

irrun
Copy link
Contributor

@irrun irrun commented Feb 15, 2024

Description

  • core/types: define Bid and related error message
  • internal/eth_api: add MevAPI to receive bids from builder
  • eth/api_admin: add API to support start and stop mev dynamically
  • miner: add bidSimulator to maintain bid simulation and fetch best bid from
  • consensus: add func to query the next inturn validator
  • ethclient: add clients for MevAPI

Rationale

bnb-chain/BEPs#322 (comment)

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

* core/types:  define Bid and related error message
* internal/eth_api: add MevAPI to receive bids from builder
* eth/api_admin: add API to support start and stop mev dynamically
* miner: add bidSimulator to maintain bid simulation and fetch best bid from
* consensus: add func to query the next inturn validator

// BidArgs represents the arguments to submit a bid.
type BidArgs struct {
// bid
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// bid seems not a good comment.

return hash.(common.Hash)
}

h := rlpHash(b)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the code to latest version.

// TODO put validator and builder here or parsing by header?
Validator common.Address
Builder common.Address
BlockNumber uint64
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code not updated?

@irrun irrun closed this Feb 19, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants