Merge pull request #2594 from poanetwork/ab-do-not-start-fetching-genesis-data-by-period

do not start genesis data fetching periodically
pull/2600/head
Ayrat Badykov 5 years ago committed by GitHub
commit 5dc3fd546d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      CHANGELOG.md
  2. 2
      apps/explorer/config/config.exs
  3. 1
      apps/explorer/lib/explorer/chain_spec/genesis_data.ex

@ -15,6 +15,7 @@
- [#2538](https://github.com/poanetwork/blockscout/pull/2538) - fetch the last not empty coin balance records
### Chore
- [#2594](https://github.com/poanetwork/blockscout/pull/2594) - do not start genesis data fetching periodically
- [#2590](https://github.com/poanetwork/blockscout/pull/2590) - restore backward compatablity with old releases
- [#2574](https://github.com/poanetwork/blockscout/pull/2574) - limit request body in json rpc error
- [#2566](https://github.com/poanetwork/blockscout/pull/2566) - upgrade absinthe phoenix

@ -27,7 +27,7 @@ config :explorer, Explorer.Counters.AverageBlockTime,
enabled: true,
period: average_block_period
config :explorer, Explorer.ChainSpec.GenesisData, enabled: true, chain_spec_path: System.get_env("CHAIN_SPEC_PATH")
config :explorer, Explorer.ChainSpec.GenesisData, enabled: false, chain_spec_path: System.get_env("CHAIN_SPEC_PATH")
config :explorer, Explorer.Chain.Cache.BlockNumber, enabled: true

@ -18,7 +18,6 @@ defmodule Explorer.ChainSpec.GenesisData do
@impl GenServer
def init(_) do
:timer.send_interval(@interval, :import)
Process.send_after(self(), :import, @interval)
{:ok, %{}}

Loading…
Cancel
Save