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_executePayloadV1(payload: ExecutionPayloadV1): ExecutePayloadResponse
|
||||||
proc engine_forkchoiceUpdatedV1(forkchoiceState: ForkchoiceStateV1, payloadAttributes: Option[PayloadAttributesV1]): ForkchoiceUpdatedResponse
|
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"
|
invalid = "INVALID"
|
||||||
syncing = "SYNCING"
|
syncing = "SYNCING"
|
||||||
|
|
||||||
|
PayloadID* = FixedBytes[8]
|
||||||
|
|
||||||
ExecutePayloadResponse* = object
|
ExecutePayloadResponse* = object
|
||||||
status*: string
|
status*: string
|
||||||
latestValidHash*: Option[BlockHash]
|
latestValidHash*: Option[BlockHash]
|
||||||
|
@ -36,7 +38,7 @@ type
|
||||||
|
|
||||||
ForkchoiceUpdatedResponse* = object
|
ForkchoiceUpdatedResponse* = object
|
||||||
status*: string
|
status*: string
|
||||||
payloadId*: Option[Quantity]
|
payloadId*: Option[PayloadID]
|
||||||
|
|
||||||
const
|
const
|
||||||
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.4/src/engine/interop/specification.md#error-codes
|
# https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.4/src/engine/interop/specification.md#error-codes
|
||||||
|
|
Loading…
Reference in New Issue