Commit a5a856b1 authored by Danyal Prout's avatar Danyal Prout

Review feedback

parent 74ea8288
...@@ -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) {
......
...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment