|
|
|
@ -241,19 +241,12 @@ config :explorer, Explorer.Chain.Cache.Accounts, |
|
|
|
|
ttl_check_interval: if(System.get_env("DISABLE_INDEXER") == "true", do: :timer.seconds(1), else: false), |
|
|
|
|
global_ttl: if(System.get_env("DISABLE_INDEXER") == "true", do: :timer.seconds(5)) |
|
|
|
|
|
|
|
|
|
config :explorer, Explorer.Chain.Cache.PendingTransactions, |
|
|
|
|
enabled: |
|
|
|
|
if(System.get_env("ETHEREUM_JSONRPC_VARIANT") == "besu", |
|
|
|
|
do: false, |
|
|
|
|
else: true |
|
|
|
|
), |
|
|
|
|
ttl_check_interval: if(System.get_env("DISABLE_INDEXER") == "true", do: :timer.seconds(1), else: false), |
|
|
|
|
global_ttl: if(System.get_env("DISABLE_INDEXER") == "true", do: :timer.seconds(5)) |
|
|
|
|
|
|
|
|
|
config :explorer, Explorer.Chain.Cache.Uncles, |
|
|
|
|
ttl_check_interval: if(System.get_env("DISABLE_INDEXER") == "true", do: :timer.seconds(1), else: false), |
|
|
|
|
global_ttl: if(System.get_env("DISABLE_INDEXER") == "true", do: :timer.seconds(5)) |
|
|
|
|
|
|
|
|
|
config :explorer, Explorer.Chain.Cache.GasUsage, enabled: false |
|
|
|
|
|
|
|
|
|
config :explorer, Explorer.ThirdPartyIntegrations.Sourcify, |
|
|
|
|
server_url: System.get_env("SOURCIFY_SERVER_URL") || "https://sourcify.dev/server", |
|
|
|
|
enabled: System.get_env("ENABLE_SOURCIFY_INTEGRATION") == "true", |
|
|
|
|