-
Notifications
You must be signed in to change notification settings - Fork 390
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
Make Engine *V3s handle V3 requests only #5845
Conversation
9ccf3e9
to
a85346f
Compare
dfcb6bf
to
78bd6dd
Compare
78bd6dd
to
f856077
Compare
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.
Looks correct!
0830df3
to
fbdf0a9
Compare
f856077
to
f431233
Compare
src/Nethermind/Nethermind.Merge.Plugin/Data/ExecutionPayload.cs
Outdated
Show resolved
Hide resolved
src/Nethermind/Nethermind.Merge.Plugin/Data/ExecutionPayload.cs
Outdated
Show resolved
Hide resolved
src/Nethermind/Nethermind.Merge.Plugin/Data/ExecutionPayload.cs
Outdated
Show resolved
Hide resolved
src/Nethermind/Nethermind.Merge.Plugin/Data/ExecutionPayload.cs
Outdated
Show resolved
Hide resolved
src/Nethermind/Nethermind.Merge.Plugin.Test/EngineModuleTests.HelperFunctions.cs
Show resolved
Hide resolved
src/Nethermind/Nethermind.Merge.Plugin/Handlers/GetPayloadHandlerBase.cs
Outdated
Show resolved
Hide resolved
src/Nethermind/Nethermind.Merge.Plugin/EngineRpcModule.Cancun.cs
Outdated
Show resolved
Hide resolved
If we are going class hierarchy - which we now can and should! - let's use polymorphism. Previous design prevented us from doing that. |
Or maybe we shouldn't have class hierarchies in engine API parameter classes? This would make multi-dimensional extensions hard.
Now imagine that for now, Optimism doesn't need 4844 and #5476 fields, but at some point, it starts to need it. It will be hard to model the data classes correctly. Options:
|
src/Nethermind/Nethermind.Merge.Plugin/EngineRpcModule.Cancun.cs
Outdated
Show resolved
Hide resolved
src/Nethermind/Nethermind.Merge.Plugin/Handlers/GetPayloadHandlerBase.cs
Show resolved
Hide resolved
…ermindEth/nethermind into feature/eip-4844-v3-handles-v3-only
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.
comments + #5932
Requires #5596 to be merged
Implements ethereum/execution-apis #418
engine_getPayloadV3
,engine_newPayloadV3
to handle Cancun payloads only.Changes
-38005: Unsupported fork
, when V3 is called for a pre-Cancun payloadTypes of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Notes on testing
Requires Cancun fork