diff --git a/lib/lambda_ethereum_consensus/fork_choice/helpers.ex b/lib/lambda_ethereum_consensus/fork_choice/helpers.ex index ecae831b0..74e4224b7 100644 --- a/lib/lambda_ethereum_consensus/fork_choice/helpers.ex +++ b/lib/lambda_ethereum_consensus/fork_choice/helpers.ex @@ -10,7 +10,7 @@ defmodule LambdaEthereumConsensus.ForkChoice.Helpers do @spec current_status_message() :: {:ok, SszTypes.StatusMessage.t()} | {:error, any} - def current_status_message(store) do + def current_status_message do with {:ok, store} <- LambdaEthereumConsensus.ForkChoice.Store.get_store(), {:ok, head_root} <- get_head(store), {:ok, state} <- LambdaEthereumConsensus.Store.StateStore.get_state(head_root), diff --git a/lib/lambda_ethereum_consensus/fork_choice/store.ex b/lib/lambda_ethereum_consensus/fork_choice/store.ex index 848325eaf..2c60285b3 100644 --- a/lib/lambda_ethereum_consensus/fork_choice/store.ex +++ b/lib/lambda_ethereum_consensus/fork_choice/store.ex @@ -37,7 +37,7 @@ defmodule LambdaEthereumConsensus.ForkChoice.Store do end @spec get_store() :: {:ok, SszTypes.Store.t()} - def get_store() do + def get_store do [ time, genesis_time,