-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
feat: use v4 engine APIs when Isthmus enabled #13976
base: develop
Are you sure you want to change the base?
feat: use v4 engine APIs when Isthmus enabled #13976
Conversation
/ci authorize 871efb6 |
@meyer9 what are your plans with this PR? |
oh nvm looks like the relevant changes were already merged |
871efb6
to
3a3de57
Compare
/ci authorize 3a3de57 |
req[i] = hex[i] | ||
} | ||
return req | ||
} |
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.
I was wondering if its possible to do this in a 1 liner but doesn't seem possible without unsafe
// Warning: not recommended for production.
func convertRequestsUnsafe(hex []hexutil.Bytes) [][]byte {
return *(*[][]byte)(unsafe.Pointer(&hex))
}
@@ -352,6 +357,36 @@ func (ea *L2EngineAPI) NewPayloadV3(ctx context.Context, params *eth.ExecutionPa | |||
return ea.newPayload(ctx, params, versionedHashes, beaconRoot, nil) | |||
} | |||
|
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 looks right to me but not sure if there is something else missing in here. cc @Inphi
return ð.PayloadStatusV1{Status: eth.ExecutionInvalid}, engine.InvalidParams.With(errors.New("nil executionRequests post-prague")) | ||
} | ||
|
||
if !ea.config().IsIsthmus(uint64(params.Timestamp)) { |
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.
I don't notice test coverage of this case
/ci authorize 3a3de57 |
Looks like there was some sort of deadlock?
|
Description
Updates Optimism to use payload v4 methods when Isthmus is enabled.
Tests
Updates existing tests following v3 example.