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. 4
      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
config :ethereum_jsonrpc, EthereumJSONRPC.Utility.EndpointAvailabilityChecker, enabled: false
config :explorer, Explorer.ExchangeRates, enabled: false, store: :none
config :ueberauth, Ueberauth.Strategy.Auth0.OAuth,

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

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

Loading…
Cancel
Save