Skip to content

Conversation

@charlielewisme
Copy link
Collaborator

Certain nodes do not support batch requests for debug_traceBlockByNumber, which is used by export_geth_traces.

Rather than adding a non-batch executor, this PR provides a workaround where the existing BatchWeb3Provider is used to send a non-batch request if batch_size == 1 and the response is then appended to a list, to mimic the response of a batch request.

In order to make this workaround complete, I've also updated the MockBatchWeb3Provider used in tests. Local tests have been run successfully with a variety of node providers.

@TimNooren TimNooren removed their assignment Feb 16, 2023
@charlielewisme charlielewisme merged commit b176d77 into main Feb 16, 2023
@charlielewisme charlielewisme deleted the feat/workaround-non-batch-geth-requests branch February 16, 2023 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants