Skip to content

Commit

Permalink
Add engine_getPayloadV2 with locally built block value (#314)
Browse files Browse the repository at this point in the history
* Add blockValue to engine_getPayloadV2

Apply suggestions from code review

Co-authored-by: Mikhail Kalinin <noblesse.knight@gmail.com>
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>

* Fix reference path

Co-authored-by: allboxes <all@box.es>
Co-authored-by: Mikhail Kalinin <noblesse.knight@gmail.com>
Co-authored-by: lightclient <14004106+lightclient@users.noreply.github.com>
  • Loading branch information
4 people committed Dec 26, 2022
1 parent 6709c2a commit fb72652
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/engine/shanghai.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,12 +121,17 @@ This method follows the same specification as [`engine_forkchoiceUpdatedV1`](./p
* method: `engine_getPayloadV2`
* params:
1. `payloadId`: `DATA`, 8 Bytes - Identifier of the payload build process
* timeout: 1s

#### Response

* result: [`ExecutionPayloadV2`](#ExecutionPayloadV2)
* result: `object`
- `executionPayload`: [`ExecutionPayloadV2`](#ExecutionPayloadV2)
- `blockValue` : `QUANTITY`, 256 Bits - The expected value to be received by the `feeRecipient` in wei
* error: code and message set in case an exception happens while getting the payload.

#### Specification

Refer to the specification for [`engine_getPayloadV1`](./paris.md#engine_getpayloadv1).
This method follows the same specification as [`engine_getPayloadV1`](./paris.md#engine_getpayloadv1) with the addition of the following:

1. Client software **SHOULD** use the sum of the block's priority fees or any other algorithm to determine `blockValue`.

0 comments on commit fb72652

Please sign in to comment.