Engine API: unify failure mode for mismatched structure versions#337
Engine API: unify failure mode for mismatched structure versions#337mkalinin merged 9 commits intoethereum:mainfrom
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
V2method calls in a way that client software MUST return-32602: Invalid paramserror.The idea behind this change is to make a future proof unification to this type of failure, and also get rid of abusing
INVALIDpayload 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.