From 7c1f64c382ecd6ccc7a03c80544ea7bb5e17f300 Mon Sep 17 00:00:00 2001 From: karasakalmt Date: Mon, 11 Dec 2023 21:26:22 +0200 Subject: [PATCH] state fetch changed --- lib/lambda_ethereum_consensus/fork_choice/helpers.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lambda_ethereum_consensus/fork_choice/helpers.ex b/lib/lambda_ethereum_consensus/fork_choice/helpers.ex index daa75f1ba..3b52d22c8 100644 --- a/lib/lambda_ethereum_consensus/fork_choice/helpers.ex +++ b/lib/lambda_ethereum_consensus/fork_choice/helpers.ex @@ -13,7 +13,7 @@ defmodule LambdaEthereumConsensus.ForkChoice.Helpers do {:ok, SszTypes.StatusMessage.t()} | {:error, any} def current_status_message(store) do with {:ok, head_root} <- get_head(store), - {:ok, state} <- StateStore.get_state(head_root) do + {:ok, state} <- Map.fetch(store.block_states, head_root) do {:ok, %SszTypes.StatusMessage{ fork_digest: