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

fix: initial updates to full node guide #528

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions guides/full-node.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,22 @@ First, update the `config_dir` in the `rollkit.toml` file:
config_dir = "/root/.yourrollupd_fn" // [!code ++]
```

Let's set a terminal variable for the chain ID.

```sh
CHAIN_ID=gm
```

Initialize the chain config for the full node, lets call it `FullNode` and set the chain ID to your rollup chain ID:

```bash
rollkit init FullNode --chain-id=your-rollup-chain-id
rollkit init FullNode --chain-id=$CHAIN_ID
```

Copy the genesis file from the sequencer node:

```bash
cp /root/.yourrollupd/config/genesis.json /root/.yourrollupd_fn/config/genesis.json
cp $HOME/.$CHAIN_ID/config/genesis.json $HOME/.${CHAIN_ID}_fn/config/genesis.json
```

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

### Start the Full Node

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.

Make sure to include these flags with your start command:

```sh
--rpc.laddr tcp://127.0.0.1:46657 \
--grpc.address 127.0.0.1:9390 \
--p2p.laddr "0.0.0.0:46656" \
--api.address tcp://localhost:1318
```

Run your full node with the following command:

```bash
rollkit start --rollkit.aggregator=false \
--rollkit.da_address http://127.0.0.1:7980 \
--p2p.seeds [email protected]:26656 \
--minimum-gas-prices 0stake \
--rpc.laddr tcp://127.0.0.1:46657 \
--grpc.address 127.0.0.1:9390 \
--p2p.seeds [email protected]:26656 \
--p2p.laddr "0.0.0.0:46656" \
--json-rpc.ws-address 127.0.0.1:8547 \
--api.address tcp://localhost:1318
```

Expand Down
Loading