fix: Clear null round blocks from missing block ranges (#10805)

pull/10813/head
Qwerty5Uiop 2 months ago committed by GitHub
parent dd6b1c9d4b
commit 547032e204
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 4
      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}

Loading…
Cancel
Save