From 547032e2047bc4dab86f95396a3773be6465ea3d Mon Sep 17 00:00:00 2001 From: Qwerty5Uiop <105209995+Qwerty5Uiop@users.noreply.github.com> Date: Mon, 23 Sep 2024 16:38:41 +0400 Subject: [PATCH] fix: Clear null round blocks from missing block ranges (#10805) --- apps/indexer/lib/indexer/block/catchup/fetcher.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/indexer/lib/indexer/block/catchup/fetcher.ex b/apps/indexer/lib/indexer/block/catchup/fetcher.ex index 7f3d32ecf5..ea5454b5a2 100644 --- a/apps/indexer/lib/indexer/block/catchup/fetcher.ex +++ b/apps/indexer/lib/indexer/block/catchup/fetcher.ex @@ -176,8 +176,8 @@ defmodule Indexer.Block.Catchup.Fetcher do case result do {:ok, %{inserted: inserted, errors: errors}} -> - handle_null_rounds(errors) - clear_missing_ranges(range, errors) + valid_errors = handle_null_rounds(errors) + clear_missing_ranges(range, valid_errors) {:ok, inserted: inserted}