From 11d2ff9e10d6db4d2a59ccbd1fc43bd0ad7b0414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Gr=C3=BCner?= <47506558+MegaRedHand@users.noreply.github.com> Date: Mon, 22 Jan 2024 10:12:00 -0300 Subject: [PATCH] Fix: wasn't storing ttl-linked data --- lib/lambda_ethereum_consensus/store/blocks.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/lambda_ethereum_consensus/store/blocks.ex b/lib/lambda_ethereum_consensus/store/blocks.ex index 52ce39d10..e1488e5ed 100644 --- a/lib/lambda_ethereum_consensus/store/blocks.ex +++ b/lib/lambda_ethereum_consensus/store/blocks.ex @@ -104,6 +104,7 @@ defmodule LambdaEthereumConsensus.Store.Blocks do delete_ttl(block_root) uniq = :erlang.unique_integer([:monotonic]) :ets.insert_new(@ets_ttl_data, {uniq, block_root}) + :ets.update_element(@ets_block_by_hash, block_root, {3, uniq}) end defp delete_ttl(block_root) do