Skip to content
This repository has been archived by the owner on Feb 24, 2025. It is now read-only.

Commit

Permalink
Use the timeout for the new request
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Rodygin committed Feb 14, 2024
1 parent 178f8ec commit 84e7b96
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/geth.ex
Original file line number Diff line number Diff line change
Expand Up @@ -148,10 +148,15 @@ defmodule EthereumJSONRPC.Geth do
end

defp debug_trace_block_by_number_request({id, block_number}) do
timeout = Application.get_env(:ethereum_jsonrpc, :internal_transaction_timeout)

request(%{
id: id,
method: "debug_traceBlockByNumber",
params: [integer_to_quantity(block_number), tracer_params()]
params: [
integer_to_quantity(block_number),
%{timeout: timeout} |> Map.merge(tracer_params())
]
})
end

Expand Down

0 comments on commit 84e7b96

Please sign in to comment.