Skip to content

test: karst coverage#561

Open
julio4 wants to merge 1 commit into
mainfrom
test/karst-fork-coverage
Open

test: karst coverage#561
julio4 wants to merge 1 commit into
mainfrom
test/karst-fork-coverage

Conversation

@julio4

@julio4 julio4 commented Jul 20, 2026

Copy link
Copy Markdown
Member

Adds karst_node_config() to in-process test framework

Some tests covering:

  • karst-at-genesis block building
  • P256VERIFY precompile
  • P256VERIFY Osaka gas repricing

Copilot AI review requested due to automatic review settings July 20, 2026 15:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends the in-process Rust test framework to support running nodes with the Karst fork active at genesis, and adds fork-focused integration tests to validate Karst behavior (basic block building and RIP-7212/EIP-7951 P256VERIFY behavior, including gas repricing).

Changes:

  • Add karst_chain_spec() and karst_node_config() to easily spin up LocalInstance under Karst-at-genesis.
  • Add a Karst-at-genesis smoke test ensuring ordinary block building still works.
  • Add Karst P256VERIFY precompile correctness + gas repricing tests.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
crates/op-rbuilder/src/tests/framework/instance.rs Adds a Karst-at-genesis chain spec helper and exposes karst_node_config() for #[rb_test(config = ...)].
crates/op-rbuilder/src/tests/forks.rs Adds Karst fork tests (block building, P256VERIFY correctness, and gas repricing comparison vs default chain).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@avalonche avalonche left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'll be good to update builder-playground too

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