-
Notifications
You must be signed in to change notification settings - Fork 380
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
Engine API: unify failure mode for mismatched structure versions #337
Conversation
9333f32
to
dc4aa60
Compare
I like this. Can we add in the same change for the |
Done! |
Now I'm wondering if we should specify that the |
This does explicitly seem to exclude that possibility... |
As a follow up, I had a chat with Mikhail about the intent here, and hadn't understood fully that we'd be able to call the V2 of a function with the v1 data structure after the timestamp passes, in order to perform things like syncing functions. |
Good point. I have added |
Update engine API to include some new changes introduced in - ethereum/execution-apis#338 - ethereum/execution-apis#337 Signed-off-by: Simon Dudley <simon.dudley@consensys.net> Signed-off-by: Zhenyang Shi <wcgcyx@gmail.com> Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
Update engine API to include some new changes introduced in - ethereum/execution-apis#338 - ethereum/execution-apis#337 Signed-off-by: Simon Dudley <simon.dudley@consensys.net> Signed-off-by: Zhenyang Shi <wcgcyx@gmail.com> Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
Update engine API to include some new changes introduced in - ethereum/execution-apis#338 - ethereum/execution-apis#337 Signed-off-by: Simon Dudley <simon.dudley@consensys.net> Signed-off-by: Zhenyang Shi <wcgcyx@gmail.com> Co-authored-by: Simon Dudley <simon.dudley@consensys.net>
Unifies return value for the case when the wrong data structure version is used in
V2
method calls in a way that client software MUST return-32602: Invalid params
error.The idea behind this change is to make a future proof unification to this type of failure, and also get rid of abusing
INVALID
payload status and discrepancy between two methods in handling the same type of error that exists in the current version of the spec.Note: We may introduce a new custom error type to be returned in the response. I just thought we might not need it but not opposed to it in general.