Merge branch 'master' into ab-modify-query-to-fetch-failed-contract-creation

pull/1621/head
Ayrat Badykov 6 years ago committed by GitHub
commit 57cef244af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      CHANGELOG.md
  2. 3
      apps/indexer/config/config.exs
  3. 2
      apps/indexer/lib/indexer/block/catchup/fetcher.ex

@ -2,6 +2,8 @@
### Features ### Features
- [1611](https://github.com/poanetwork/blockscout/pull/1611) - allow setting the first indexing block
### Fixes ### Fixes
- [#1621](https://github.com/poanetwork/blockscout/pull/1621) - Modify query to fetch failed contract creations - [#1621](https://github.com/poanetwork/blockscout/pull/1621) - Modify query to fetch failed contract creations

@ -33,7 +33,8 @@ config :indexer,
ecto_repos: [Explorer.Repo], ecto_repos: [Explorer.Repo],
metadata_updater_days_interval: 7, metadata_updater_days_interval: 7,
# bytes # bytes
memory_limit: 1 <<< 30 memory_limit: 1 <<< 30,
first_block: System.get_env("FIRST_BLOCK") || 0
# config :indexer, Indexer.ReplacedTransaction.Supervisor, disabled?: true # config :indexer, Indexer.ReplacedTransaction.Supervisor, disabled?: true
# config :indexer, Indexer.Block.Reward.Supervisor, disabled?: true # config :indexer, Indexer.Block.Reward.Supervisor, disabled?: true

@ -80,7 +80,7 @@ defmodule Indexer.Block.Catchup.Fetcher do
_ -> _ ->
# realtime indexer gets the current latest block # realtime indexer gets the current latest block
first = latest_block_number - 1 first = latest_block_number - 1
last = 0 last = Application.get_env(:indexer, :first_block)
Logger.metadata(first_block_number: first, last_block_number: last) Logger.metadata(first_block_number: first, last_block_number: last)

Loading…
Cancel
Save