Merge pull request #357 from poanetwork/iff-fix-indexer-skipping-blocks

Real-time indexing starting from the last indexed Block
pull/361/head
Igor Florian 6 years ago committed by GitHub
commit bd18c661a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/indexer/lib/indexer/block_fetcher.ex

@ -294,7 +294,7 @@ defmodule Indexer.BlockFetcher do
end
defp realtime_task(%{} = state) do
{:ok, latest_block_number} = EthereumJSONRPC.fetch_block_number_by_tag("latest")
{:ok, latest_block_number} = Chain.max_block_number()
{:ok, seq} = Sequence.start_link([], latest_block_number, 2)
stream_import(state, seq, max_concurrency: 1)
end

Loading…
Cancel
Save