diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b5df01252..f76f2ba33f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ### Fixes - [#2496](https://github.com/poanetwork/blockscout/pull/2496) - fix docker build +- [#2495](https://github.com/poanetwork/blockscout/pull/2495) - fix logs for indexed chain - [#2459](https://github.com/poanetwork/blockscout/pull/2459) - fix top addresses query - [#2425](https://github.com/poanetwork/blockscout/pull/2425) - Force to show address view for checksummed address even if it is not in DB diff --git a/apps/indexer/lib/indexer/block/catchup/bound_interval_supervisor.ex b/apps/indexer/lib/indexer/block/catchup/bound_interval_supervisor.ex index f1b216aa2b..b128ad4ca0 100644 --- a/apps/indexer/lib/indexer/block/catchup/bound_interval_supervisor.ex +++ b/apps/indexer/lib/indexer/block/catchup/bound_interval_supervisor.ex @@ -185,7 +185,12 @@ defmodule Indexer.Block.Catchup.BoundIntervalSupervisor do def handle_info( {ref, - %{first_block_number: first_block_number, missing_block_count: missing_block_count, shrunk: false = shrunk}}, + %{ + first_block_number: first_block_number, + last_block_number: last_block_number, + missing_block_count: missing_block_count, + shrunk: false = shrunk + }}, %__MODULE__{ bound_interval: bound_interval, task: %Task{ref: ref} @@ -197,7 +202,7 @@ defmodule Indexer.Block.Catchup.BoundIntervalSupervisor do 0 -> Logger.info("Index already caught up.", first_block_number: first_block_number, - last_block_number: 0, + last_block_number: last_block_number, missing_block_count: 0, shrunk: shrunk ) diff --git a/apps/indexer/lib/indexer/block/catchup/fetcher.ex b/apps/indexer/lib/indexer/block/catchup/fetcher.ex index 59088ebc3f..f228551a37 100644 --- a/apps/indexer/lib/indexer/block/catchup/fetcher.ex +++ b/apps/indexer/lib/indexer/block/catchup/fetcher.ex @@ -123,7 +123,7 @@ defmodule Indexer.Block.Catchup.Fetcher do Shrinkable.shrunk?(sequence) end - %{first_block_number: first, missing_block_count: missing_block_count, shrunk: shrunk} + %{first_block_number: first, last_block_number: last, missing_block_count: missing_block_count, shrunk: shrunk} end end