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

Builder: filter header with 0 bid and empty tx root #11313

Merged
merged 3 commits into from
Aug 25, 2022

Conversation

terencechain
Copy link
Member

This makes validator checking outsourced payloader more strict. It filters out headers with bid amount 0 and an empty tx root. Overall this is a good thing to make validators more defensive when outsourcing block construction

@terencechain terencechain added Ready For Review Builder PR or issue that supports builder related work labels Aug 25, 2022
@terencechain terencechain requested a review from a team as a code owner August 25, 2022 16:30
@terencechain terencechain self-assigned this Aug 25, 2022
@@ -120,6 +123,22 @@ func (vs *Server) getPayloadHeaderFromBuilder(ctx context.Context, slot types.Sl
if err != nil {
return nil, err
}

v := bid.Message.Value
Copy link
Contributor

Choose a reason for hiding this comment

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

is it possible to get a message without a value here? if it's external it might be nil maybe safer for a check here

Copy link
Member Author

Choose a reason for hiding this comment

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

Good point, thanks!

@prylabs-bulldozer prylabs-bulldozer bot merged commit 436792f into develop Aug 25, 2022
@delete-merged-branch delete-merged-branch bot deleted the filter-zero-header branch August 25, 2022 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Builder PR or issue that supports builder related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants