Geth and Parity variant configs for EthereumJSONRPC

pull/335/head
Luke Imhoff 7 years ago
parent 7d8d09a370
commit f732a0cd27
  1. 10
      apps/ethereum_jsonrpc/config/config.exs
  2. 5
      apps/ethereum_jsonrpc/config/geth.exs
  3. 5
      apps/ethereum_jsonrpc/config/parity.exs

@ -3,6 +3,10 @@
use Mix.Config use Mix.Config
config :ethereum_jsonrpc, config :ethereum_jsonrpc,
http: [recv_timeout: 60_000, timeout: 60_000, hackney: [pool: :ethereum_jsonrpc]], http: [recv_timeout: 60_000, timeout: 60_000, hackney: [pool: :ethereum_jsonrpc]]
trace_url: "https://sokol-trace.poa.network",
url: "https://sokol.poa.network" variant = System.get_env("ETHEREUM_JSONRPC_VARIANT") || "parity"
# Import variant specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{variant}.exs"

@ -0,0 +1,5 @@
use Mix.Config
config :ethereum_jsonrpc,
trace_url: "https://mainnet.infura.io/mew",
url: "https://mainnet.infura.io/mew"

@ -0,0 +1,5 @@
use Mix.Config
config :ethereum_jsonrpc,
trace_url: "https://sokol-trace.poa.network",
url: "https://sokol.poa.network"
Loading…
Cancel
Save