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: