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

eth/api_backend: return error code for PoS tag requests before merge #28309

Closed

Conversation

lightclient
Copy link
Member

There is a specific testcase in hive that verifies the error code of PoS tag requests ("safe" / "finalized") before the finalization of the merge. This PR fixes that test.

Personally, I think the test is a bit overzealous and should be happy so long as the request errors. This is the first specific error code we return in the eth JSON-RPC as far as I know. My preference would be to close this PR and update Hive instead with this: ethereum/hive#874

@karalabe
Copy link
Member

I'd vote against this PR and change / hive test. The RPC is not specced to return error codes. Adding them ad-hoc will lead to a giant mess. We should either have a complete spec and do everything at once properly, or not touch it. Just adding one here because someone somewhere wanted it doesn't make sense.

@lightclient
Copy link
Member Author

Agreed. To be clear though, it is in the spec: https://github.com/ethereum/execution-apis/blob/584905270d8ad665718058060267061ecfd79ca5/src/schemas/block.yaml#L114

It is just the only instance of returning a specific error code.

@holiman
Copy link
Contributor

holiman commented Oct 17, 2023

Computer says no 🤷

Sorry man

@holiman holiman closed this Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants