Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Daisy chain tests #14

Merged
merged 7 commits into from
Jul 14, 2023
Merged

Daisy chain tests #14

merged 7 commits into from
Jul 14, 2023

Conversation

pcw109550
Copy link
Member

@pcw109550 pcw109550 commented Jul 7, 2023

This mirrors and fixes ethereum-optimism#79.

Overview

Adds tests for the daisy chain.

The test compares two RPC responses:

  • RPC request to op-erigon which historical relay is enabled, to l2geth.
  • RPC request to l2geth.

New test suite: simulators/optimism/daisy-chain.

Tests for RPC methods that involve execution on l2geth:

  • debug_traceBlockByNumber
  • debug_traceBlockByHash
  • debug_traceTransaction
  • debug_traceCall
  • eth_call
  • eth_estimateGas

Issues

  • Adjust client init timeout from 3 min to 6 min. This is to wait op-erigon's entrypoint script to download op-erigon goerli tar ball and untar.
  • debug_traceBlockByNumber, debug_traceBlockByHash, debug_traceTransaction's responses were incorrectly compared because those responses where stored at invalid struct txTraceResult. This struct removes necessary fields which must be compared for sanity check. Fixed by using type as interface{}.

While implementing, noticed op-erigon bugs. Fixed at testinprod-io/op-erigon#79, testinprod-io/op-erigon#80, testinprod-io/op-erigon#81.

After these op-erigon fixes are merged(and released), hive ci will pass. Locally tested.

clabby and others added 2 commits March 22, 2023 08:45
Adds daisy chain tests for op-geth, backed by the production Goerli nodes to provide the actual L2Geth execution.
@pcw109550 pcw109550 force-pushed the pcw109550/daisy-chain-tests branch 3 times, most recently from b7eece2 to 41ac577 Compare July 7, 2023 06:15
@pcw109550 pcw109550 force-pushed the pcw109550/daisy-chain-tests branch from 41ac577 to 84374fc Compare July 7, 2023 06:30
@pcw109550 pcw109550 requested a review from ImTei July 11, 2023 06:31
@pcw109550 pcw109550 self-assigned this Jul 11, 2023
@pcw109550
Copy link
Member Author

CI passing with op-erigon version https://github.com/testinprod-io/op-erigon/releases/tag/v2.43.0-0.1.8

@pcw109550 pcw109550 merged commit ad60f00 into op-erigon Jul 14, 2023
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.

3 participants