From 26f41cb427560063dada1db61dfd915dbf47b67e Mon Sep 17 00:00:00 2001 From: Rodrigo Oliveri Date: Mon, 30 Sep 2024 20:55:06 -0300 Subject: [PATCH] removed the pruning completely for testing --- lib/lambda_ethereum_consensus/fork_choice/fork_choice.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)