Fix missing expectation in mock_beacon_storage_pointer_request (#10399)

* Fix missing expectation in mock_beacon_storage_pointer_request

* Update apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/utility/endpoint_availability_checker.ex

Co-authored-by: Qwerty5Uiop <105209995+Qwerty5Uiop@users.noreply.github.com>

---------

Co-authored-by: Qwerty5Uiop <105209995+Qwerty5Uiop@users.noreply.github.com>
pull/10400/head
Victor Baranov 5 months ago committed by GitHub
parent 9a98839aca
commit a1817f4148
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 1
      apps/block_scout_web/config/runtime/test.exs
  2. 8
      apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/utility/endpoint_availability_checker.ex
  3. 2
      config/runtime.exs

@ -2,6 +2,7 @@ import Config
alias EthereumJSONRPC.Variant alias EthereumJSONRPC.Variant
config :ethereum_jsonrpc, EthereumJSONRPC.Utility.EndpointAvailabilityChecker, enabled: false
config :explorer, Explorer.ExchangeRates, enabled: false, store: :none config :explorer, Explorer.ExchangeRates, enabled: false, store: :none
config :ueberauth, Ueberauth.Strategy.Auth0.OAuth, config :ueberauth, Ueberauth.Strategy.Auth0.OAuth,

@ -16,9 +16,13 @@ defmodule EthereumJSONRPC.Utility.EndpointAvailabilityChecker do
end end
def init(_) do def init(_) do
schedule_next_check() if Application.get_env(:ethereum_jsonrpc, __MODULE__)[:enabled] do
schedule_next_check()
{:ok, %{unavailable_endpoints_arguments: []}} {:ok, %{unavailable_endpoints_arguments: []}}
else
:ignore
end
end end
def add_endpoint(json_rpc_named_arguments, url_type) do def add_endpoint(json_rpc_named_arguments, url_type) do

@ -200,6 +200,8 @@ config :ethereum_jsonrpc, EthereumJSONRPC.PendingTransaction,
config :ethereum_jsonrpc, EthereumJSONRPC.RequestCoordinator, config :ethereum_jsonrpc, EthereumJSONRPC.RequestCoordinator,
wait_per_timeout: ConfigHelper.parse_time_env_var("ETHEREUM_JSONRPC_WAIT_PER_TIMEOUT", "20s") wait_per_timeout: ConfigHelper.parse_time_env_var("ETHEREUM_JSONRPC_WAIT_PER_TIMEOUT", "20s")
config :ethereum_jsonrpc, EthereumJSONRPC.Utility.EndpointAvailabilityChecker, enabled: true
################ ################
### Explorer ### ### Explorer ###
################ ################

Loading…
Cancel
Save