From 90baba6ca72081d2b65c418d8ba192a73cc156f8 Mon Sep 17 00:00:00 2001 From: Thomas Letan Date: Wed, 28 Aug 2024 12:06:01 +0200 Subject: [PATCH] =?UTF-8?q?EVM=20Node:=20RPC=20mode=20interprets=20?= =?UTF-8?q?=E2=80=9Cpending=E2=80=9D=20as=20=E2=80=9Clatest=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is already the behavior for other modes like observer and sequencer. --- etherlink/bin_node/lib_dev/rpc.ml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/etherlink/bin_node/lib_dev/rpc.ml b/etherlink/bin_node/lib_dev/rpc.ml index 257ea55e0114..4c191ffb01bc 100644 --- a/etherlink/bin_node/lib_dev/rpc.ml +++ b/etherlink/bin_node/lib_dev/rpc.ml @@ -66,7 +66,7 @@ let find_irmin_hash_from_number ctxt number = let find_irmin_hash ctxt (block : Ethereum_types.Block_parameter.extended) = let open Lwt_result_syntax in match block with - | Block_parameter Latest -> find_latest_hash ctxt + | Block_parameter (Latest | Pending) -> find_latest_hash ctxt | Block_parameter Earliest -> ( let* res = Evm_store.(use ctxt.store Context_hashes.find_earliest) in match res with @@ -77,8 +77,6 @@ let find_irmin_hash ctxt (block : Ethereum_types.Block_parameter.extended) = match res with | Some (_, hash) -> return hash | None -> failwith "No state available") - | Block_parameter Pending -> - failwith "Block parameter pending is not supported" | Block_parameter (Number number) -> ( let* res = Evm_store.( -- GitLab