Merge pull request #2495 from poanetwork/ab-geth-index-range

fix logging for indexed chain when last block is set
pull/2506/head
Victor Baranov 5 years ago committed by GitHub
commit 8332857303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 9
      apps/indexer/lib/indexer/block/catchup/bound_interval_supervisor.ex
  3. 2
      apps/indexer/lib/indexer/block/catchup/fetcher.ex

@ -7,6 +7,7 @@
### Fixes ### Fixes
- [#2496](https://github.com/poanetwork/blockscout/pull/2496) - fix docker build - [#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 - [#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 - [#2425](https://github.com/poanetwork/blockscout/pull/2425) - Force to show address view for checksummed address even if it is not in DB

@ -185,7 +185,12 @@ defmodule Indexer.Block.Catchup.BoundIntervalSupervisor do
def handle_info( def handle_info(
{ref, {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__{ %__MODULE__{
bound_interval: bound_interval, bound_interval: bound_interval,
task: %Task{ref: ref} task: %Task{ref: ref}
@ -197,7 +202,7 @@ defmodule Indexer.Block.Catchup.BoundIntervalSupervisor do
0 -> 0 ->
Logger.info("Index already caught up.", Logger.info("Index already caught up.",
first_block_number: first_block_number, first_block_number: first_block_number,
last_block_number: 0, last_block_number: last_block_number,
missing_block_count: 0, missing_block_count: 0,
shrunk: shrunk shrunk: shrunk
) )

@ -123,7 +123,7 @@ defmodule Indexer.Block.Catchup.Fetcher do
Shrinkable.shrunk?(sequence) Shrinkable.shrunk?(sequence)
end 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
end end

Loading…
Cancel
Save