|
|
|
@ -13,7 +13,18 @@ config :explorer, |
|
|
|
|
|
|
|
|
|
config :explorer, Explorer.Counters.AverageBlockTime, enabled: true |
|
|
|
|
|
|
|
|
|
config :explorer, Explorer.Counters.AddressesWithBalanceCounter, enabled: true, enable_consolidation: true |
|
|
|
|
balances_update_interval = |
|
|
|
|
if System.get_env("ADDRESS_WITH_BALANCES_UPDATE_INTERVAL") do |
|
|
|
|
case Integer.parse(System.get_env("ADDRESS_WITH_BALANCES_UPDATE_INTERVAL")) do |
|
|
|
|
{integer, ""} -> integer |
|
|
|
|
_ -> nil |
|
|
|
|
end |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
config :explorer, Explorer.Counters.AddressesWithBalanceCounter, |
|
|
|
|
enabled: true, |
|
|
|
|
enable_consolidation: true, |
|
|
|
|
update_interval_in_seconds: balances_update_interval || 30 * 60 |
|
|
|
|
|
|
|
|
|
config :explorer, Explorer.ExchangeRates, enabled: true, store: :ets |
|
|
|
|
|
|
|
|
|