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

reth on base mainnet not working with op-node v1.5.0 #6388

Closed
1 task done
Chomtana opened this issue Feb 4, 2024 · 6 comments
Closed
1 task done

reth on base mainnet not working with op-node v1.5.0 #6388

Chomtana opened this issue Feb 4, 2024 · 6 comments
Labels
A-op-reth Related to Optimism and op-reth C-bug An unexpected or incorrect behavior S-needs-investigation This issue requires detective work to figure out what's going wrong

Comments

@Chomtana
Copy link
Contributor

Chomtana commented Feb 4, 2024

Describe the bug

Base mainnet op-reth stuck with "no parent beacon block root post-cancun" when using with op-node v1.5.0

Also, op-node is stuck with many "no peers ready to handle block requests for more P2P requests for L2 block history"

Please see the longer log at https://gist.github.com/Chomtana/ff1b6181e6b0f424ac1e0111c89696ff because GitHub says it's too long

Notice that op-node v1.5.0 uses engine_forkchoiceUpdatedV3 while v1.4.3 uses engine_forkchoiceUpdatedV2

Steps to reproduce

  1. Install and run the latest op-reth or v0.1.0-alpha.16
  2. Install and run op-node v1.5.0
  3. It stuck...

To fix this, I revert op-node to v1.4.3 and op-reth to v0.1.0-alpha.16 (Release)

Node logs

Feb 04 04:37:20 node op-reth[505863]: 2024-02-04T04:37:20.723158Z  INFO blockchain_tree: Block is already canonical, ignoring. block_hash=0x842eb0ba12975b0243c977e6644e4ff043d23a518055f1d                                                                                                                               e3515e8315a67c6a9
Feb 04 04:37:20 node op-reth[505863]: 2024-02-04T04:37:20.723343Z  INFO reth::commands::node::events: Canonical chain committed number=10094800 hash=0x842eb0ba12975b0243c977e6644e4ff043d2                                                                                                                               3a518055f1de3515e8315a67c6a9 elapsed=212.838µs
Feb 04 04:37:20 node op-reth[505863]: 2024-02-04T04:37:20.723408Z  INFO reth::commands::node::events: Forkchoice updated head_block_hash=0x842eb0ba12975b0243c977e6644e4ff043d23a518055f1de                                                                                                                               3515e8315a67c6a9 safe_block_hash=0x842eb0ba12975b0243c977e6644e4ff043d23a518055f1de3515e8315a67c6a9 finalized_block_hash=0x842eb0ba12975b0243c977e6644e4ff043d23a518055f1de3515e8315a67c6a9 st                                                                                                                               atus=Valid
Feb 04 04:37:20 node op-reth[505863]: 2024-02-04T04:37:20.723418Z TRACE method_call{method="engine_forkchoiceUpdatedV3"}: jsonrpsee_core::tracing: send="{\"jsonrpc\":\"2.0\",\"error\":{\"                                                                                                                               code\":-32602,\"message\":\"Invalid params\",\"data\":{\"err\":\"no parent beacon block root post-cancun\"}},\"id\":1896}"
Feb 04 04:37:22 node op-reth[505863]: 2024-02-04T04:37:22.435541Z  INFO reth::cli: Status connected_peers=0 freelist=54190 latest_block=10094800

Platform(s)

Linux (x86)

What version/commit are you on?

commit 10f4434

What database version are you on?

Current database version: 1
Local database version: 1

What type of node are you running?

Archive (default)

What prune config do you use, if any?

No response

If you've built Reth from source, provide the full command you used

make install-op

Code of Conduct

  • I agree to follow the Code of Conduct
@Chomtana Chomtana added C-bug An unexpected or incorrect behavior S-needs-triage This issue needs to be labelled labels Feb 4, 2024
@mattsse
Copy link
Collaborator

mattsse commented Feb 4, 2024

@mattsse mattsse added S-needs-investigation This issue requires detective work to figure out what's going wrong A-op-reth Related to Optimism and op-reth and removed S-needs-triage This issue needs to be labelled labels Feb 4, 2024
@clabby
Copy link
Collaborator

clabby commented Feb 4, 2024

@mattsse Yes, it does after Dencun activation (in the Ecotone hardfork, which has not been activated anywhere except for internal devnets just yet). https://specs.optimism.io/protocol/exec-engine.html#extended-payloadattributesv3

Starting at Ecotone, the parentBeaconBlockRoot must be set to the L1 origin parentBeaconBlockRoot, or a zero bytes32 if the Dencun functionality with parentBeaconBlockRoot is not active on L1.

@Rjected
Copy link
Member

Rjected commented Feb 5, 2024

@mattsse Yes, it does after Dencun activation (in the Ecotone hardfork, which has not been activated anywhere except for internal devnets just yet). https://specs.optimism.io/protocol/exec-engine.html#extended-payloadattributesv3

Starting at Ecotone, the parentBeaconBlockRoot must be set to the L1 origin parentBeaconBlockRoot, or a zero bytes32 if the Dencun functionality with parentBeaconBlockRoot is not active on L1.

@clabby Do you know why the above logs say that the engine_forkchoiceUpdatedV3 method was called then? V3 methods should only be called post-ecotone IIRC

@clabby
Copy link
Collaborator

clabby commented Feb 5, 2024

@Rjected This is on our end, got to the bottom of it a few mins ago. Fix in review: ethereum-optimism/optimism#9253

geth has identical behavior to reth in upstream (where it rejects V3 messages w/ a missing parentBeaconBlockRoot), merged recently w/ ethereum/go-ethereum#28230. We've pulled in the upstream PR, and an rc for v1.5.1 will be released once 9253 is merged.

@Chomtana For now, temporarily downgrading to v1.4.3 will do the trick.

@Rjected
Copy link
Member

Rjected commented Feb 5, 2024

@Rjected This is on our end, got to the bottom of it a few mins ago. Fix in review: ethereum-optimism/optimism#9253

geth has identical behavior to reth in upstream (where it rejects V3 messages w/ a missing parentBeaconBlockRoot), merged recently w/ ethereum/go-ethereum#28230. We've pulled in the upstream PR, and an rc for v1.5.1 will be released once 9253 is merged.

@Chomtana For now, temporarily downgrading to v1.4.3 will do the trick.

awesome, that makes sense. I'll watch that PR, when it's merged + released, I'll close this issue with a recommendation to update op-node

@Rjected
Copy link
Member

Rjected commented Feb 7, 2024

The fix is now merged and available in a release candidate: https://github.com/ethereum-optimism/optimism/releases/tag/op-node%2Fv1.5.1-rc.1

closing this!

@Rjected Rjected closed this as completed Feb 7, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Reth Tracker Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-op-reth Related to Optimism and op-reth C-bug An unexpected or incorrect behavior S-needs-investigation This issue requires detective work to figure out what's going wrong
Projects
Archived in project
Development

No branches or pull requests

4 participants