Skip to content

Commit

Permalink
removed the pruning completely for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-o committed Oct 1, 2024
1 parent 91a4969 commit 26f41cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lambda_ethereum_consensus/fork_choice/fork_choice.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand All @@ -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)
Expand Down

0 comments on commit 26f41cb

Please sign in to comment.