Skip to content

Commit

Permalink
Removed a store change
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-o committed Oct 2, 2024
1 parent 850f50f commit 9d6eecf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/types/store.ex
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,8 @@ defmodule Types.Store do

@spec get_children(t(), Types.root()) :: [BeaconBlock.t()]
def get_children(%__MODULE__{tree_cache: tree}, parent_root) do
Tree.get_children(tree, parent_root)
|> case do
{:ok, children} -> Enum.map(children, &{&1, Blocks.get_block!(&1)})
{:error, :not_found} -> []
end
Tree.get_children!(tree, parent_root)
|> Enum.map(&{&1, Blocks.get_block!(&1)})
end

@spec store_block_info(t(), BlockInfo.t()) :: t()
Expand Down

0 comments on commit 9d6eecf

Please sign in to comment.