-
Notifications
You must be signed in to change notification settings - Fork 70
Handle execution payload bid #486
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
Handle execution payload bid #486
Conversation
c0de6fb to
045c02d
Compare
968d5ac to
2a96e60
Compare
045c02d to
37838ce
Compare
b48f2f3 to
b2d4e5e
Compare
b2d4e5e to
9195a6e
Compare
29d9529 to
3267ce3
Compare
| ) | ||
| } | ||
|
|
||
| fn spawn_execution_payload_bid_task_with_wait_group( |
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.
No need to have a separate spawn_execution_payload_bid_task_with_wait_group method if you don't plan to use it again somewhere else
|
|
||
| impl<P: Preset, E, W> Spawn<P, E, W> for ExecutionPayloadBidTask<P, W> { | ||
| fn spawn(self, critical: &mut Critical<P, E, W>) { | ||
| critical.low_priority_tasks.push_back(self.into()) |
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'm not sure if it should be low or mid priority task
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 will mark TODO there to figure out later
fork_choice_store/src/store.rs
Outdated
| let builder_index = bid.builder_index; | ||
|
|
||
| // > off-protocol payment is disallowed in gossip, the `bid.execution_payment` MUST be zero | ||
| if origin.is_from_gossip() { |
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.
What about bids from POST /eth/v1/beacon/execution_payload_bid? Are they allowed to have non-zero execution_payment?
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 submitted from the API need to pass the gossip validations, so it should also disallow
after #484