Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
a5a856b1
Unverified
Commit
a5a856b1
authored
Oct 11, 2023
by
Danyal Prout
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Review feedback
parent
74ea8288
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
l2_engine_api.go
op-program/client/l2/engineapi/l2_engine_api.go
+1
-5
derivation.md
specs/derivation.md
+3
-0
No files found.
op-program/client/l2/engineapi/l2_engine_api.go
View file @
a5a856b1
...
@@ -182,11 +182,7 @@ func (ea *L2EngineAPI) GetPayloadV1(ctx context.Context, payloadId eth.PayloadID
...
@@ -182,11 +182,7 @@ func (ea *L2EngineAPI) GetPayloadV1(ctx context.Context, payloadId eth.PayloadID
func
(
ea
*
L2EngineAPI
)
GetPayloadV2
(
ctx
context
.
Context
,
payloadId
eth
.
PayloadID
)
(
*
eth
.
ExecutionPayloadEnvelope
,
error
)
{
func
(
ea
*
L2EngineAPI
)
GetPayloadV2
(
ctx
context
.
Context
,
payloadId
eth
.
PayloadID
)
(
*
eth
.
ExecutionPayloadEnvelope
,
error
)
{
payload
,
err
:=
ea
.
getPayload
(
ctx
,
payloadId
)
payload
,
err
:=
ea
.
getPayload
(
ctx
,
payloadId
)
if
err
!=
nil
{
return
&
eth
.
ExecutionPayloadEnvelope
{
ExecutionPayload
:
payload
},
err
return
nil
,
err
}
else
{
return
&
eth
.
ExecutionPayloadEnvelope
{
ExecutionPayload
:
payload
},
nil
}
}
}
func
(
ea
*
L2EngineAPI
)
ForkchoiceUpdatedV1
(
ctx
context
.
Context
,
state
*
eth
.
ForkchoiceState
,
attr
*
eth
.
PayloadAttributes
)
(
*
eth
.
ForkchoiceUpdatedResult
,
error
)
{
func
(
ea
*
L2EngineAPI
)
ForkchoiceUpdatedV1
(
ctx
context
.
Context
,
state
*
eth
.
ForkchoiceState
,
attr
*
eth
.
PayloadAttributes
)
(
*
eth
.
ForkchoiceUpdatedResult
,
error
)
{
...
...
specs/derivation.md
View file @
a5a856b1
...
@@ -684,6 +684,9 @@ To interact with the engine, the [execution engine API][exec-engine] is used, wi
...
@@ -684,6 +684,9 @@ To interact with the engine, the [execution engine API][exec-engine] is used, wi
-
[
`engine_getPayloadV2`
]
— retrieves a previously requested execution payload build.
-
[
`engine_getPayloadV2`
]
— retrieves a previously requested execution payload build.
-
[
`engine_newPayloadV2`
]
— executes an execution payload to create a block.
-
[
`engine_newPayloadV2`
]
— executes an execution payload to create a block.
The current version of
`op-node`
uses the
`v2`
RPC methods from the engine API, whereas prior versions used the
`v1`
equivalents. The
`v2`
methods are backwards compatible with
`v1`
payloads but support Shanghai.
[
`engine_forkchoiceUpdatedV2`
]:
exec-engine.md#engine_forkchoiceupdatedv2
[
`engine_forkchoiceUpdatedV2`
]:
exec-engine.md#engine_forkchoiceupdatedv2
[
`engine_getPayloadV2`
]:
exec-engine.md#engine_getpayloadv2
[
`engine_getPayloadV2`
]:
exec-engine.md#engine_getpayloadv2
[
`engine_newPayloadV2`
]:
exec-engine.md#engine_newpayloadv2
[
`engine_newPayloadV2`
]:
exec-engine.md#engine_newpayloadv2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment