ethereum-optimism / ethereum-optimism/optimism

bug: `op-node` shouldn't call `debug_chainConfig` on auth-rpc when working with custom chain configs

Open
#14,396 7 comments 0 reactions 1 assignee Claimed by @sebastianst View on GitHub
A-op-node
Dominant language
Go
Stars
6.5k
Forks
4k
Avg merge
2d 15h
Merged PRs (30d)
145

Description

**Bug Description**

1. As of #14179 `op-node`, when using non-standard (non superchain) chain IDs, is trying to call `debug_chainConfig` method against _authrpc_ port of the EL.

See:

- https://github.com/ethereum-optimism/optimism/blob/v1.11.0/op-node/node/node.go#L464-L466

2. However, `debug` namespace is _not_ implemented by authrpc.

See:

- https://github.com/ethereum-optimism/op-geth/blob/v1.101500.0/node/defaults.go#L52
- https://github.com/ethereum-optimism/op-geth/blob/v1.101500.0/node/node.go#L433-L436

3. Consequently the `op-node` deterministically fails on start with something like:

```text
failed to setup: unable to create the rollup node: failed to init L2: failed to load or fetch chain config for id NNNN: fetching: Method not found
```

**Steps to Reproduce**

1. Try to use custom chain config (via `rollup.json`).

**Expected behavior**

No failure when custom chain config is used.

**Environment Information:**

- Ubuntu 24.04.1 LTS
- op-node v1.11.0

---

⚠️ **Notice:** Issues that do not include the following sections will be subject to closure:
- Bug Description
- Steps to Reproduce
- Environment Information

Please ensure all required sections are filled out accurately to expedite the debugging process and improve issue resolution efficiency.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.