diff --git a/lib/lambda_ethereum_consensus/fork_choice/fork_choice.ex b/lib/lambda_ethereum_consensus/fork_choice/fork_choice.ex index ad3486af1..217d00763 100644 --- a/lib/lambda_ethereum_consensus/fork_choice/fork_choice.ex +++ b/lib/lambda_ethereum_consensus/fork_choice/fork_choice.ex @@ -46,7 +46,7 @@ defmodule LambdaEthereumConsensus.ForkChoice do Logger.info("[Fork choice] Adding new block", root: block_info.root, slot: slot) - %Store{finalized_checkpoint: last_finalized_checkpoint} = store + %Store{finalized_checkpoint: _last_finalized_checkpoint} = store result = :telemetry.span([:sync, :on_block], %{}, fn -> @@ -61,7 +61,7 @@ defmodule LambdaEthereumConsensus.ForkChoice do :telemetry.span([:fork_choice, :recompute_head], %{}, fn -> {recompute_head(new_store), %{}} end) - |> prune_old_states(last_finalized_checkpoint.epoch) + # |> prune_old_states(last_finalized_checkpoint.epoch) |> tap(fn store -> StoreDb.persist_store(store) Logger.info("[Fork choice] Added new block", slot: slot, root: block_root)