diff --git a/Makefile b/Makefile index 2a8f4b8bc..91dcd7e4b 100644 --- a/Makefile +++ b/Makefile @@ -107,7 +107,7 @@ checkpoint-sync: compile-all #▶️ sepolia: @ Run an interactive terminal using sepolia network sepolia: compile-all - iex -S mix run -- --checkpoint-sync-url https://sepolia.beaconstate.info --network sepolia --metrics + iex -S mix run -- --checkpoint-sync-url https://sepolia.beaconstate.info --network sepolia #▶️ holesky: @ Run an interactive terminal using holesky network holesky: compile-all diff --git a/lib/lambda_ethereum_consensus/metrics.ex b/lib/lambda_ethereum_consensus/metrics.ex index 5391cc5f1..109e75f3a 100644 --- a/lib/lambda_ethereum_consensus/metrics.ex +++ b/lib/lambda_ethereum_consensus/metrics.ex @@ -107,6 +107,7 @@ defmodule LambdaEthereumConsensus.Metrics do def block_relationship(nil, _), do: :ok def block_relationship(parent_root, root) do + # If we try to add an edge to a non-existent node, it will crash. if Blocks.get_block_info(parent_root) do hex_parent_root = parent_root |> Base.encode16() hex_root = root |> Base.encode16()