payloadId is now an 8-byte quantity, not per se a number
This commit is contained in:
parent
183cc8f407
commit
41fc21595c
|
@ -4,4 +4,4 @@ import ethtypes, engine_api_types
|
|||
|
||||
proc engine_executePayloadV1(payload: ExecutionPayloadV1): ExecutePayloadResponse
|
||||
proc engine_forkchoiceUpdatedV1(forkchoiceState: ForkchoiceStateV1, payloadAttributes: Option[PayloadAttributesV1]): ForkchoiceUpdatedResponse
|
||||
proc engine_getPayloadV1(payloadId: Quantity): ExecutionPayloadV1
|
||||
proc engine_getPayloadV1(payloadId: PayloadID): ExecutionPayloadV1
|
||||
|
|
|
@ -19,6 +19,8 @@ type
|
|||
invalid = "INVALID"
|
||||
syncing = "SYNCING"
|
||||
|
||||
PayloadID* = FixedBytes[8]
|
||||
|
||||
ExecutePayloadResponse* = object
|
||||
status*: string
|
||||
latestValidHash*: Option[BlockHash]
|
||||
|
@ -36,7 +38,7 @@ type
|
|||
|
||||
ForkchoiceUpdatedResponse* = object
|
||||
status*: string
|
||||
payloadId*: Option[Quantity]
|
||||
payloadId*: Option[PayloadID]
|
||||
|
||||
const
|
||||
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.4/src/engine/interop/specification.md#error-codes
|
||||
|
|
Loading…
Reference in New Issue