Replace getNetwork() calls with getChainId() utility#2535
Replace getNetwork() calls with getChainId() utility#2535mergify[bot] merged 3 commits intoethereum-optimism:developfrom FlattestWhite:refactor-to-use-get-chain-id
Conversation
🦋 Changeset detectedLatest commit: 76a1c27 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
This PR changes implementation code, but doesn't include a changeset. Did you forget to add one? |
smartcontracts
left a comment
There was a problem hiding this comment.
Just got one minor fix for ya, everything else LGTM!
|
thanks @smartcontracts made the changes |
Done 👍 might need your approval to merge |
|
This PR has been added to the merge queue, and will be merged soon. |
|
This PR is next in line to be merged, and will be merged as soon as checks pass. |
|
Nice work! Drop an ETH address and I'll send you a contributor NFT :-) |
My ETH address is richardguan.eth [0xc8e7817C4AC86EF3aFC525F150091391205b727C] - cheers :) |
## Overview This PR completely removes the deprecated `RuntimeActor` from the `kona-node` service, along with all related functionality and documentation as requested in the issue. ## Changes Made ### Removed Files - **`docs/docs/pages/node/design/runtime.mdx`** - Complete Runtime system documentation - **`crates/node/service/src/actors/runtime.rs`** - RuntimeActor implementation ### Modified Files - **`docs/sidebar.ts`** - Removed Runtime link from navigation menu - **`crates/node/service/src/actors/mod.rs`** - Removed runtime module and exports - **`crates/node/service/src/lib.rs`** - Removed RuntimeActor, RuntimeContext, RuntimeState exports - **`crates/node/service/src/service/core.rs`** - Removed RuntimeActor associated type and runtime_builder method from RollupNodeService trait - **`crates/node/service/src/service/standard/node.rs`** - Removed RuntimeActor type alias and runtime_builder implementation - **`crates/node/service/src/service/standard/builder.rs`** - Removed runtime_load_interval field and with_runtime_load_interval method - **`bin/node/src/commands/node.rs`** - Removed `--l1.runtime-config-reload-interval` CLI argument and related functionality ## What Was Removed The RuntimeActor system provided dynamic configuration management and protocol version signaling by: - Monitoring L1 contracts for runtime parameter changes - Fetching configuration from System Config and Protocol Versions contracts - Signaling protocol version updates to the execution engine via `engine_signalSuperchainV1` - Managing periodic configuration reload intervals ## Verification - ✅ `kona-node-service` package compiles successfully - ✅ `kona-node` binary compiles successfully - ✅ All existing unit tests pass (13/13 tests) - ✅ Node binary runs and shows version information correctly - ✅ No breaking changes to existing functionality The removal was surgical and precise, maintaining all existing functionality while cleanly removing the entire deprecated RuntimeActor system. <!-- START COPILOT CODING AGENT TIPS --> --- 💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more [Copilot coding agent tips](https://gh.io/copilot-coding-agent-tips) in the docs. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: refcell <21288394+refcell@users.noreply.github.com> Co-authored-by: refcell <abigger87@gmail.com>
## Overview Removes the mention of the `RuntimeActor` from the docs. It was removed in #2535
## Overview Removes the mention of the `RuntimeActor` from the docs. It was removed in #2535
Description
Refactoring calls to getNetwork() with getChainId() utility exposed through
@eth-optimism/core-utils.Additional context
Add any other context about the problem you're solving.
Metadata