Fix runtime definition of ETHEREUM_JSONRPC_VARIANT variable

pull/6189/head
Viktor Baranov 2 years ago
parent 6fbe072fff
commit 3dcf91d38f
  1. 2
      CHANGELOG.md
  2. 2
      apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/variant.ex
  3. 2
      config/runtime.exs

@ -22,7 +22,7 @@
### Chore
- [#6183](https://github.com/blockscout/blockscout/pull/6183) - Transparent coin name definition
- [#6155](https://github.com/blockscout/blockscout/pull/6155) - Refactor Ethereum JSON RPC variants
- [#6155](https://github.com/blockscout/blockscout/pull/6155), [#6189](https://github.com/blockscout/blockscout/pull/6189) - Refactor Ethereum JSON RPC variants
- [#6125](https://github.com/blockscout/blockscout/pull/6125) - Rename obsolete "parity" EthereumJSONRPC.Variant to "nethermind"
- [#6124](https://github.com/blockscout/blockscout/pull/6124) - Docker compose: add config for Erigon
- [#6053](https://github.com/blockscout/blockscout/pull/6053) - Bump jest-environment-jsdom from 29.0.1 to 29.0.2 in /apps/block_scout_web/assets

@ -96,7 +96,7 @@ defmodule EthereumJSONRPC.Variant do
) :: {:ok, [raw_trace_params]} | {:error, reason :: term} | :ignore
def get do
variant = Application.get_env(:ethereum_jsonrpc, __MODULE__)[:type]
variant = System.get_env("ETHEREUM_JSONRPC_VARIANT", "nethermind")
cond do
is_nil(variant) ->

@ -168,8 +168,6 @@ config :ethereum_jsonrpc, EthereumJSONRPC.Geth, debug_trace_transaction_timeout:
config :ethereum_jsonrpc, EthereumJSONRPC.PendingTransaction,
type: System.get_env("ETHEREUM_JSONRPC_PENDING_TRANSACTIONS_TYPE", "default")
config :ethereum_jsonrpc, EthereumJSONRPC.Variant, type: System.get_env("ETHEREUM_JSONRPC_VARIANT", "nethermind")
################
### Explorer ###
################

Loading…
Cancel
Save