Fix peer_id fetch command

This commit is contained in:
Cristian Conache 2024-03-14 14:23:00 +02:00 committed by GitHub
parent 0322527fbe
commit 2d1aedb858
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -60,7 +60,7 @@ Important note: If no keys are specified in the volumes, new keys will be automa
At this step, both worker and head nodes identities are generated inside `head-data/keys` and `worker-data/keys`. At this step, both worker and head nodes identities are generated inside `head-data/keys` and `worker-data/keys`.
To instruct the worker node to connect to the head node: To instruct the worker node to connect to the head node:
- run `cat data/head/keys/identity` to extract the head node's peer_id specified in the `head-data/keys/identity` - run `cat head-data/keys/identity` to extract the head node's peer_id specified in the `head-data/keys/identity`
- use the printed peer_id to replace the `head-id` placeholder value specified inside the docker-compose.yml file when running the worker service: `--boot-nodes=/ip4/172.22.0.100/tcp/9010/p2p/head-id` - use the printed peer_id to replace the `head-id` placeholder value specified inside the docker-compose.yml file when running the worker service: `--boot-nodes=/ip4/172.22.0.100/tcp/9010/p2p/head-id`
3. **Run setup** 3. **Run setup**