Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

chore(node/rpc): unify RPC actor with the other actors#2308

Merged
theochap merged 1 commit intomainfrom
theo/try-simplify-rpc
Jun 27, 2025
Merged

chore(node/rpc): unify RPC actor with the other actors#2308
theochap merged 1 commit intomainfrom
theo/try-simplify-rpc

Conversation

@theochap
Copy link
Member

Description

This PR refactors the RPC actor in light of #2303 to unify its interactions with the other actors. Simplifies a little bit the way we handle RPC arguments by removing the RpcBuilder and move the RpcModule handling inside the RpcActor

@theochap theochap self-assigned this Jun 26, 2025
@theochap theochap added K-chore Kind: chore A-node Area: cl node (eq. Go op-node) handles single-chain consensus A-rpc Area: rpc labels Jun 26, 2025
@theochap theochap moved this to In Review in Project Tracking Jun 26, 2025
Copy link
Member Author

Choose a reason for hiding this comment

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

Those variants are not needed anymore. Note that we may be able to do some error handling by propagating the errors from the actors. We can try and do it as a follow-up.

@codecov
Copy link

codecov bot commented Jun 26, 2025

Codecov Report

Attention: Patch coverage is 0% with 16 lines in your changes missing coverage. Please review.

Project coverage is 81.0%. Comparing base (edd0486) to head (c91f08b).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
crates/node/rpc/src/config.rs 0.0% 10 Missing ⚠️
crates/node/p2p/src/net/driver.rs 0.0% 5 Missing ⚠️
crates/node/p2p/src/net/builder.rs 0.0% 1 Missing ⚠️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@theochap theochap force-pushed the theo/remove-launchers branch 2 times, most recently from 9f75322 to c37a909 Compare June 27, 2025 13:06
@theochap theochap force-pushed the theo/try-simplify-rpc branch 2 times, most recently from 0628540 to 12d28d2 Compare June 27, 2025 13:15
Base automatically changed from theo/remove-launchers to main June 27, 2025 13:28
@theochap theochap force-pushed the theo/try-simplify-rpc branch from 12d28d2 to 5a0bbd1 Compare June 27, 2025 13:41
Copy link
Contributor

@refcell refcell left a comment

Choose a reason for hiding this comment

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

Some smaller comments, overall looks great. Nice consistent pattern

@theochap theochap force-pushed the theo/try-simplify-rpc branch 3 times, most recently from 4cf7a8f to cd14ad7 Compare June 27, 2025 14:50
Copy link
Contributor

@refcell refcell left a comment

Choose a reason for hiding this comment

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

Nice!

@theochap theochap force-pushed the theo/try-simplify-rpc branch from cd14ad7 to a994076 Compare June 27, 2025 16:01
@theochap theochap enabled auto-merge June 27, 2025 16:01
@theochap theochap force-pushed the theo/try-simplify-rpc branch from a994076 to 73d38d9 Compare June 27, 2025 17:11
@theochap theochap force-pushed the theo/try-simplify-rpc branch from 73d38d9 to c91f08b Compare June 27, 2025 17:17
@theochap theochap added this pull request to the merge queue Jun 27, 2025
Merged via the queue into main with commit f86052b Jun 27, 2025
24 of 25 checks passed
@theochap theochap deleted the theo/try-simplify-rpc branch June 27, 2025 17:39
@github-project-automation github-project-automation bot moved this from In Review to Done in Project Tracking Jun 27, 2025
theochap added a commit to ethereum-optimism/optimism that referenced this pull request Dec 10, 2025
## Description

This PR refactors the RPC actor in light of op-rs/kona#2303 to unify its
interactions with the other actors. Simplifies a little bit the way we
handle RPC arguments by removing the `RpcBuilder` and move the
`RpcModule` handling inside the `RpcActor`
theochap added a commit to ethereum-optimism/optimism that referenced this pull request Jan 14, 2026
## Description

This PR refactors the RPC actor in light of #2303 to unify its
interactions with the other actors. Simplifies a little bit the way we
handle RPC arguments by removing the `RpcBuilder` and move the
`RpcModule` handling inside the `RpcActor`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

A-node Area: cl node (eq. Go op-node) handles single-chain consensus A-rpc Area: rpc K-chore Kind: chore

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants