Cap genesis sequence immediately

Genesis sequence should only fetch the missing ranges
pull/411/head
Luke Imhoff 6 years ago
parent a3d51f5e1a
commit ded84c9633
  1. 4
      apps/indexer/lib/indexer/block_fetcher.ex

@ -188,8 +188,8 @@ defmodule Indexer.BlockFetcher do
debug(fn -> "#{count} missed block ranges between #{latest_block_number} and genesis" end)
{:ok, seq} =
Sequence.start_link(prefix: missing_ranges, first: 0, step: -1 * state.blocks_batch_size)
{:ok, seq} = Sequence.start_link(prefix: missing_ranges, first: 0, step: -1 * state.blocks_batch_size)
Sequence.cap(seq)
stream_import(state, seq, max_concurrency: state.blocks_concurrency)
end

Loading…
Cancel
Save