From 61ab7f07b265ec6e8a7d75e658abfb04ce1dacf5 Mon Sep 17 00:00:00 2001 From: avilagaston9 Date: Fri, 12 Jul 2024 18:35:46 -0300 Subject: [PATCH] refactor: nit changes --- Makefile | 2 +- lib/lambda_ethereum_consensus/metrics.ex | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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()