Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit c361e40

Browse files
committed
fix: initial updates to full node guide
1 parent 0ea3d02 commit c361e40

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

guides/full-node.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,22 @@ First, update the `config_dir` in the `rollkit.toml` file:
2424
config_dir = "/root/.yourrollupd_fn" // [!code ++]
2525
```
2626

27+
Let's set a terminal variable for the chain ID.
28+
29+
```sh
30+
CHAIN_ID=gm
31+
```
32+
2733
Initialize the chain config for the full node, lets call it `FullNode` and set the chain ID to your rollup chain ID:
2834

2935
```bash
30-
rollkit init FullNode --chain-id=your-rollup-chain-id
36+
rollkit init FullNode --chain-id=$CHAIN_ID
3137
```
3238

3339
Copy the genesis file from the sequencer node:
3440

3541
```bash
36-
cp /root/.yourrollupd/config/genesis.json /root/.yourrollupd_fn/config/genesis.json
42+
cp $HOME/.$CHAIN_ID/config/genesis.json $HOME/.${CHAIN_ID}_fn/config/genesis.json
3743
```
3844

3945
### Set Up P2P Connection to Sequencer Node
@@ -52,16 +58,27 @@ export P2P_ID="12D3KooWJbD9TQoMSSSUyfhHMmgVY3LqCjxYFz8wQ92Qa6DAqtmh"
5258

5359
### Start the Full Node
5460

61+
We are now ready to run our full node. If we are running the full node on the same machine as the sequencer, we need to make sure we update the ports to avoid conflicts.
62+
63+
Make sure to include these flags with your start command:
64+
65+
```sh
66+
--rpc.laddr tcp://127.0.0.1:46657 \
67+
--grpc.address 127.0.0.1:9390 \
68+
--p2p.laddr "0.0.0.0:46656" \
69+
--api.address tcp://localhost:1318
70+
```
71+
5572
Run your full node with the following command:
5673

5774
```bash
5875
rollkit start --rollkit.aggregator=false \
5976
--rollkit.da_address http://127.0.0.1:7980 \
77+
--p2p.seeds $P2P_ID@127.0.0.1:26656 \
78+
--minimum-gas-prices 0stake \
6079
--rpc.laddr tcp://127.0.0.1:46657 \
6180
--grpc.address 127.0.0.1:9390 \
62-
--p2p.seeds $P2P_ID@127.0.0.1:26656 \
6381
--p2p.laddr "0.0.0.0:46656" \
64-
--json-rpc.ws-address 127.0.0.1:8547 \
6582
--api.address tcp://localhost:1318
6683
```
6784

0 commit comments

Comments
 (0)