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

[op-node] l1.rpckind=reth_db fails even when compiled with rethdb tag #10365

Closed
olivain opened this issue May 1, 2024 · 1 comment
Closed
Assignees

Comments

@olivain
Copy link

olivain commented May 1, 2024

Hi there,

On my debian, I followed the instructions of this page:
https://paradigmxyz.github.io/reth/run/optimism.html
in order to compile op-node locally with the rethdb-reader dylib:

git clone git@github.com:ethereum-optimism/optimism.git
cd optimism/op-service/rethdb-reader && cargo build --release
cd ../op-node
go build -v -tags rethdb -o ./bin/op-node ./cmd/main.go
mv bin/op-node /usr/bin/op-node

Compilation went well with no issues. But when i try to run op-node with the following flags:

--l1.rpckind=reth_db --l1.rethdb=/root/.local/share/reth_data/db

op-node fails with the following error :

msg="Application failed" message="invalid value "reth_db" for flag -l1.rpckind: unknown rpc kind: "reth_db""

Is the rethdb-reader still a thing ? is the tutorial i followed outdated ? Is there any way to precise to op-node that the l1 rpc runnng locally is reth ? What am i missing here ?

@protolambda
Copy link
Contributor

--l1.rethdb has to be set to a non-empty value, and the build flag should be used, for the reth DB to be used. There's no such thing as a reth_db RPC Kind as far as I am aware, but this may have been simplified as part of prior reth-db related changes.

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

No branches or pull requests

3 participants