-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat: support MEV #2214
Conversation
* 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 |
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.
// bid
seems not a good comment.
return hash.(common.Hash) | ||
} | ||
|
||
h := rlpHash(b) |
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.
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 |
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.
code not updated?
Description
Rationale
bnb-chain/BEPs#322 (comment)
Example
add an example CLI or API response...
Changes
Notable changes: