From 183cc8f407082a44fec18492a8c18a8261cdd27f Mon Sep 17 00:00:00 2001 From: Dustin Brody Date: Tue, 9 Nov 2021 14:06:16 +0000 Subject: [PATCH] working Geth engine RPC interop --- web3/engine_api_types.nim | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/web3/engine_api_types.nim b/web3/engine_api_types.nim index ed1c2ed..8b824d2 100644 --- a/web3/engine_api_types.nim +++ b/web3/engine_api_types.nim @@ -35,15 +35,10 @@ type syncing = "SYNCING" ForkchoiceUpdatedResponse* = object - status*: ForkchoiceUpdatedStatus + status*: string payloadId*: Option[Quantity] const - # https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.4/src/engine/specification.md#errors - PARSE_ERROR* = -32700 - INVALID_REQUEST* = -32600 - METHOD_NOT_FOUND* = -32601 - INVALID_PARAMS* = -32602 - INTERNAL_ERROR* = -32603 - SERVER_ERROR* = -32000 - UNKNOWN_PAYLOAD* = -32001 + # https://github.com/ethereum/execution-apis/blob/v1.0.0-alpha.4/src/engine/interop/specification.md#error-codes + UNKNOWN_HEADER* = 4 + UNKNOWN_PAYLOAD* = 5