-
Notifications
You must be signed in to change notification settings - Fork 896
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
Create skeleton structure for Engine API V2 methods #4876
Conversation
Signed-off-by: Simon Dudley <[email protected]>
Signed-off-by: Simon Dudley <[email protected]>
Signed-off-by: Simon Dudley <[email protected]>
@@ -491,7 +503,7 @@ private JsonRpcResponse resp( | |||
new JsonRpcRequestContext( | |||
new JsonRpcRequest( | |||
"2.0", | |||
RpcMethod.ENGINE_FORKCHOICE_UPDATED.getMethodName(), | |||
RpcMethod.ENGINE_FORKCHOICE_UPDATED_V1.getMethodName(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This shouldn't be hard-coded to forkchoiceUpdatedV1. Though the way it's used in the test might mean this doesn't matter so much?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good spot. You're right that it doesn't really matter for these, but I've created a getMethodName template for consistency anyway.
I had done something similar for EngineGetPayload but missed this one.
…esponses Refactor AbstractEngineGetPayloadTest to use the same pattern Signed-off-by: Simon Dudley <[email protected]>
Signed-off-by: Simon Dudley <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Create AbstractEngineNewPayload and AbstractEngineForkchoiceUpdated, extending with V1 and V2 versions. (AbstractEngineGetPayload and V2 was already introduced in hyperledger@a483f79) Signed-off-by: Simon Dudley <[email protected]> Signed-off-by: Sally MacFarlane <[email protected]>
Create AbstractEngineNewPayload and AbstractEngineForkchoiceUpdated, extending with V1 and V2 versions. (AbstractEngineGetPayload and V2 was already introduced in hyperledger@a483f79) Signed-off-by: Simon Dudley <[email protected]>
PR description
First step to implementing https://github.com/ethereum/execution-apis/blob/main/src/engine/shanghai.md
Create AbstractEngineNewPayload and AbstractEngineForkchoiceUpdated, extending with V1 and V2 versions.
(AbstractEngineGetPayload and V2 was already introduced in a483f79)
This will be the basis for parallelising getting a productionised version of the Withdrawals draft onto main.
Fixed Issue(s)
Part of #4776
Documentation
doc-change-required
label to this PR ifupdates are required.
Changelog