From f5515b5cfe81c77bc6f5404aed9ba2238c0f3be6 Mon Sep 17 00:00:00 2001 From: nikitosing <32202610+nikitosing@users.noreply.github.com> Date: Thu, 25 Jul 2024 11:55:26 +0300 Subject: [PATCH] feat: Add INDEXER_DISABLE_REPLACED_TRANSACTION_FETCHER env (#10485) * feat: Add INDEXER_DISABLE_REPLACED_TRANSACTION_FETCHER env * Add new env to envs/common-blockscout.env --- apps/indexer/config/config.exs | 2 -- config/runtime.exs | 3 +++ docker-compose/envs/common-blockscout.env | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/indexer/config/config.exs b/apps/indexer/config/config.exs index 426ea5cc18..5ce9ab28a2 100644 --- a/apps/indexer/config/config.exs +++ b/apps/indexer/config/config.exs @@ -5,8 +5,6 @@ import Config config :indexer, ecto_repos: [Explorer.Repo] -# config :indexer, Indexer.Fetcher.ReplacedTransaction.Supervisor, disabled?: true - config :indexer, Indexer.Tracer, service: :indexer, adapter: SpandexDatadog.Adapter, diff --git a/config/runtime.exs b/config/runtime.exs index b4bfedcc9a..671cfcd0a0 100644 --- a/config/runtime.exs +++ b/config/runtime.exs @@ -709,6 +709,9 @@ config :indexer, Indexer.Block.Realtime.Supervisor, config :indexer, Indexer.Block.Catchup.Supervisor, enabled: !ConfigHelper.parse_bool_env_var("DISABLE_CATCHUP_INDEXER") +config :indexer, Indexer.Fetcher.ReplacedTransaction.Supervisor, + disabled?: ConfigHelper.parse_bool_env_var("INDEXER_DISABLE_REPLACED_TRANSACTION_FETCHER") + config :indexer, Indexer.Fetcher.TokenInstance.Realtime.Supervisor, disabled?: ConfigHelper.parse_bool_env_var("INDEXER_DISABLE_TOKEN_INSTANCE_REALTIME_FETCHER") diff --git a/docker-compose/envs/common-blockscout.env b/docker-compose/envs/common-blockscout.env index 709233596e..1d7d0f2509 100644 --- a/docker-compose/envs/common-blockscout.env +++ b/docker-compose/envs/common-blockscout.env @@ -156,6 +156,7 @@ INDEXER_DISABLE_INTERNAL_TRANSACTIONS_FETCHER=false # INDEXER_DISABLE_BLOCK_REWARD_FETCHER= # INDEXER_DISABLE_EMPTY_BLOCKS_SANITIZER= # INDEXER_DISABLE_WITHDRAWALS_FETCHER= +# INDEXER_DISABLE_REPLACED_TRANSACTION_FETCHER= # INDEXER_CATCHUP_BLOCKS_BATCH_SIZE= # INDEXER_CATCHUP_BLOCKS_CONCURRENCY= # INDEXER_CATCHUP_BLOCK_INTERVAL=