Skip to content

Commit

Permalink
Fix: wasn't storing ttl-linked data
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaRedHand committed Jan 22, 2024
1 parent b5d53e4 commit 11d2ff9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/lambda_ethereum_consensus/store/blocks.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 11d2ff9

Please sign in to comment.