Skip to content

feat: add ETHEREUM_HTTP_TIMEOUT_MS env var for viem HTTP transport (backport to v4-next)#21429

Closed
AztecBot wants to merge 2 commits intobackport-to-v4-next-stagingfrom
claudebox/backport-ethereum-http-timeout-v4-next
Closed

feat: add ETHEREUM_HTTP_TIMEOUT_MS env var for viem HTTP transport (backport to v4-next)#21429
AztecBot wants to merge 2 commits intobackport-to-v4-next-stagingfrom
claudebox/backport-ethereum-http-timeout-v4-next

Conversation

@AztecBot
Copy link
Collaborator

Summary

Backport of #20919 to v4-next.

  • Adds ETHEREUM_HTTP_TIMEOUT_MS env var to configure the HTTP timeout on viem's http() transport
  • Introduces makeL1HttpTransport helper in ethereum/src/client.ts to centralize the repeated fallback(urls.map(url => http(url, { batch: false }))) pattern
  • Updates all non-test createPublicClient call sites to use the helper with the configurable timeout

Cherry-pick details

  • Cherry-picked commit fde4119e9f22c3d321bc7c85c08b87d4a25cf7ef from PR feat: add ETHEREUM_HTTP_TIMEOUT_MS env var for viem HTTP transport #20919
  • Conflict in yarn-project/blob-client/src/client/http.ts resolved: v4-next has a simpler code structure (no parentBeaconBlockRoot conditional from a later refactor), so kept v4-next's structure while applying the makeL1HttpTransport transport change

ClaudeBox log: https://claudebox.work/s/d36a71c3e24da985?run=1

@AztecBot AztecBot added the claudebox Owned by claudebox. it can push to this PR. label Mar 12, 2026
@ludamad ludamad force-pushed the backport-to-v4-next-staging branch from 5c50c04 to 4eb8703 Compare March 12, 2026 19:33
spalladino and others added 2 commits March 12, 2026 15:40
… transport

Cherry-pick of fde4119 from PR #20919.
Contains conflict markers in yarn-project/blob-client/src/client/http.ts.
Resolved conflict by keeping v4-next code structure (no parentBeaconBlockRoot conditional)
while applying makeL1HttpTransport transport change.
@ludamad ludamad force-pushed the claudebox/backport-ethereum-http-timeout-v4-next branch from 4fa2524 to 7077ca3 Compare March 12, 2026 19:40
@ludamad
Copy link
Collaborator

ludamad commented Mar 12, 2026

Closing as duplicate — superseded by a newer attempt.

@ludamad ludamad closed this Mar 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claudebox Owned by claudebox. it can push to this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants