Skip to content

Commit d6ab2bb

Browse files
committed
use op-node to sync L2 state
1 parent f448f6c commit d6ab2bb

File tree

1 file changed

+20
-19
lines changed

1 file changed

+20
-19
lines changed

docs/op-besu-docs/run-a-node/use_docker.md

+20-19
Original file line numberDiff line numberDiff line change
@@ -89,41 +89,42 @@ The following settings are a security risk in production environments:
8989

9090
:::
9191

92-
## Start Hildr node to sync L2 state
92+
## Start op-node to sync L2 state
9393

94-
After starting the Op-Besu node, you can start the Hildr node to sync state.
94+
After starting the Op-Besu node, you can start the op-node to sync state.
9595

9696
Pull docker image of hildr:
9797

9898
```shell
99-
docker pull ghcr.io/optimism-java/hildr:latest
99+
docker pull us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node:v1.12.2
100100
```
101101

102-
Get IP of the op-besu container, and hildr container will use it to connect to op-besu via the docker bridge:
102+
Get IP of the op-besu container, and op-node container will use it to connect to op-besu via the docker bridge:
103103

104104
```shell
105105
docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' op-besu
106106
```
107107

108-
Start Hildr node:
108+
Start op-node node:
109109

110110
```shell
111-
docker run -d -it --name hildr -p 11545:11545 \
112-
-v ./jwt.txt:/jwt/jwtsecret \
113-
ghcr.io/optimism-java/hildr:latest \
114-
--network optimism-sepolia \
115-
--jwt-file /jwt/jwtsecret \
116-
--l1-rpc-url <l1_sepolia_rpc_url> \
117-
--l1-ws-rpc-url <l1_sepolia_ws_rpc_url> \
118-
--l1-beacon-url <l1_beacon_chain_sepolia_rpc_url> \
119-
--l2-rpc-url <op_besu_rpc> \
120-
--l2-engine-url <op_besu_engine_rpc> \
121-
--rpc-port 11545 \
122-
--log-level INFO \
123-
--sync-mode full
111+
docker run -d -it --name op-node -p 11545:11545 \
112+
-v ./jwt.txt:/jwt/jwt.txt \
113+
--entrypoint op-node \
114+
us-docker.pkg.dev/oplabs-tools-artifacts/images/op-node:v1.12.2 \
115+
--network op-sepolia \
116+
--l1.rpckind=basic \
117+
--l1=<l1-rpc-url> \
118+
--l2=<op-besu-engine-rpc-url> \
119+
--rpc.addr=0.0.0.0 \
120+
--rpc.port=11545 \
121+
--l2.jwt-secret=/jwt/jwt.txt \
122+
--l1.trustrpc \
123+
--l1.beacon=<l1-beacon-sepolia-rpc-url> \
124+
--syncmode=consensus-layer
124125
```
125126

126-
The synchronization needs to handle empty messages at the beginning, and the actual block synchronization will take place about 10 minutes later.
127+
The synchronization needs to handle empty messages at the beginning, and the actual block synchronization will take place about 15 minutes later.
127128

128129
For example, use curl get block data from op-besu:
129130

0 commit comments

Comments
 (0)