|
|
|
@ -143,7 +143,7 @@ defmodule Explorer.Application do |
|
|
|
|
configure(Explorer.Migrator.TokenTransferBlockConsensus), |
|
|
|
|
configure(Explorer.Migrator.RestoreOmittedWETHTransfers), |
|
|
|
|
configure_chain_type_dependent_process(Explorer.Chain.Cache.StabilityValidatorsCounters, :stability), |
|
|
|
|
configure(Explorer.Migrator.ShrinkInternalTransactions) |
|
|
|
|
configure_mode_dependent_process(Explorer.Migrator.ShrinkInternalTransactions, :indexer) |
|
|
|
|
] |
|
|
|
|
|> List.flatten() |
|
|
|
|
|
|
|
|
@ -209,6 +209,14 @@ defmodule Explorer.Application do |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
defp configure_mode_dependent_process(process, mode) do |
|
|
|
|
if Application.get_env(:explorer, :mode) in [mode, :all] do |
|
|
|
|
process |
|
|
|
|
else |
|
|
|
|
[] |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
defp sc_microservice_configure(process) do |
|
|
|
|
if Application.get_env(:explorer, Explorer.SmartContract.RustVerifierInterfaceBehaviour)[:eth_bytecode_db?] do |
|
|
|
|
process |
|
|
|
|