|
|
@ -1,8 +1,6 @@ |
|
|
|
# This file is responsible for configuring your application |
|
|
|
# This file is responsible for configuring your application |
|
|
|
# and its dependencies with the aid of the Mix.Config module. |
|
|
|
# and its dependencies with the aid of the Config module. |
|
|
|
use Mix.Config |
|
|
|
import Config |
|
|
|
|
|
|
|
|
|
|
|
import Bitwise |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
block_transformers = %{ |
|
|
|
block_transformers = %{ |
|
|
|
"clique" => Indexer.Transform.Blocks.Clique, |
|
|
|
"clique" => Indexer.Transform.Blocks.Clique, |
|
|
@ -33,8 +31,6 @@ config :indexer, |
|
|
|
ecto_repos: [Explorer.Repo], |
|
|
|
ecto_repos: [Explorer.Repo], |
|
|
|
metadata_updater_seconds_interval: |
|
|
|
metadata_updater_seconds_interval: |
|
|
|
String.to_integer(System.get_env("TOKEN_METADATA_UPDATE_INTERVAL") || "#{2 * 24 * 60 * 60}"), |
|
|
|
String.to_integer(System.get_env("TOKEN_METADATA_UPDATE_INTERVAL") || "#{2 * 24 * 60 * 60}"), |
|
|
|
# bytes |
|
|
|
|
|
|
|
memory_limit: 1 <<< 30, |
|
|
|
|
|
|
|
first_block: System.get_env("FIRST_BLOCK") || "", |
|
|
|
first_block: System.get_env("FIRST_BLOCK") || "", |
|
|
|
last_block: System.get_env("LAST_BLOCK") || "", |
|
|
|
last_block: System.get_env("LAST_BLOCK") || "", |
|
|
|
trace_first_block: System.get_env("TRACE_FIRST_BLOCK") || "", |
|
|
|
trace_first_block: System.get_env("TRACE_FIRST_BLOCK") || "", |
|
|
@ -96,4 +92,4 @@ config :logger, :indexer, |
|
|
|
|
|
|
|
|
|
|
|
# Import environment specific config. This must remain at the bottom |
|
|
|
# Import environment specific config. This must remain at the bottom |
|
|
|
# of this file so it overrides the configuration defined above. |
|
|
|
# of this file so it overrides the configuration defined above. |
|
|
|
import_config "#{Mix.env()}.exs" |
|
|
|
import_config "#{config_env()}.exs" |
|
|
|