Skip to content

Hive: Do not validate payload attributes if nil or syncing and pre-cancun check#9413

Merged
racytech merged 3 commits intoerigontech:develfrom
racytech:devel
Feb 10, 2024
Merged

Hive: Do not validate payload attributes if nil or syncing and pre-cancun check#9413
racytech merged 3 commits intoerigontech:develfrom
racytech:devel

Conversation

@racytech
Copy link
Copy Markdown
Contributor

@racytech racytech commented Feb 9, 2024

This PR partially fixes #9407

Comment thread turbo/engineapi/engine_server.go Outdated
return &engine_types.ForkChoiceUpdatedResponse{PayloadStatus: status}, nil
}

if payloadAttributes != nil {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

With this change if payloadAttributes != nil is superfluous

@somnergy
Copy link
Copy Markdown
Member

somnergy commented Feb 9, 2024

@racytech Have you checked the sequence of messages for the scenario - status is not valid but also has a potential InvalidPayloadAttributesErr.
Because with this shuffle, that will be affected

@racytech
Copy link
Copy Markdown
Contributor Author

racytech commented Feb 9, 2024

In this case we can't return both errors. one or another, whichever comes first... it happens that status check has to be first , so if it's not valid we not going to proceed to attributes validation and payload building

@racytech racytech changed the title Hive: Do not validate payload attributes if nil or syncing Hive: Do not validate payload attributes if nil or syncing and pre-cancun check Feb 9, 2024
@racytech racytech requested a review from yperbasis February 9, 2024 20:08
@racytech racytech merged commit b79f28d into erigontech:devel Feb 10, 2024
@VBulikov VBulikov mentioned this pull request Feb 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remaining Hive Cancun Test Failures

4 participants