Update docs

This commit is contained in:
Shreerang Kale 2025-05-16 11:10:18 +05:30
parent 80acf3c745
commit b459195eab
7 changed files with 14 additions and 41 deletions

1
.gitignore vendored
View File

@ -1,6 +1,5 @@
*-deployment
*-spec.yml
mainnet-genesis
output
# Playbook vars

View File

@ -11,14 +11,6 @@
- Following steps can be used to run subsequent validator nodes
- Fetch the stack:
```bash
laconic-so fetch-stack git.vdb.to/cerc-io/laconicd-stack --git-ssh --pull
```
This command clones the entire repository into the `~/cerc` folder, which includes the genesis file published by the first validator.
- Copy the example variables file:
```bash
@ -36,6 +28,8 @@
- Update `cerc_peers` in `~/cerc/laconicd-stack/playbooks/validator/validator-vars.yml`:
```bash
cerc_moniker: "LaconicMainnetNode-2"
cerc_peers: "<node-id>@host.docker.internal:26656"
```
@ -50,7 +44,7 @@
export MAINNET_DEPLOYMENT_DIR=
```
- Update port mappings in `~/cerc/laconicd-stack/playbooks/validator/templates/specs/spec-template.yml.j2` with:
- Update port mappings in `~/cerc/laconicd-stack/playbooks/validator/templates/specs/spec-template.yml.j2` to avoid port conflicts with first validator node:
```bash
network:

View File

@ -5,16 +5,14 @@
- [ansible](playbooks/README.md#ansible-installation)
- [laconic-so](https://github.com/cerc-io/stack-orchestrator/?tab=readme-ov-file#install)
## Stop testnet node
## Generate mainnet genesis file
- Stop the testnet node:
- Stop the node for SAPO testnet:
```bash
laconic-so deployment --dir <testnet-deployment-dir> stop
```
## Generate mainnet genesis file
- Fetch the stack in machine where the testnet chain node is running:
```bash
@ -84,7 +82,7 @@
```bash
# Private key of the existing account in hex format (required for gentx)
pvt_key: ""
pvt_key: "<private-key>"
# Path to the generated mainnet genesis file
# Use the absolute path of generated output directory in the previous steps

View File

@ -5,16 +5,14 @@
- [ansible](playbooks/README.md#ansible-installation)
- [laconic-so](https://github.com/cerc-io/stack-orchestrator/?tab=readme-ov-file#install)
## Stop testnet node
## Run node
- Stop the testnet node:
- Stop the node for SAPO testnet:
```bash
laconic-so deployment --dir <testnet-deployment-dir> stop
```
## Run node
- Fetch the stack:
```bash
@ -32,26 +30,11 @@
- Update `~/cerc/laconicd-stack/playbooks/validator/validator-vars.yml` with required values:
```bash
# Path to the genesis file published by the first validator
genesis_file: "~/cerc/laconicd-stack/config/mainnet-genesis.json"
# Path to the staking amount file published by the first validator
staking_amount_file: "~/cerc/laconicd-stack/config/staking-amount.json"
# Set custom moniker for the node
cerc_moniker: "LaconicMainnetNode"
# Set chain ID (should match the one in the genesis file)
cerc_chain_id: "laconic-mainnet"
# Set minimum gas price
min_gas_price: 0.001
# Set log level
cerc_loglevel: "info"
cerc_moniker: "<your-moniker>"
# Set persistent peers (comma-separated list of node IDs and addresses)
# You can find the list of available peers in node-addresses.yml
# You can find the list of available peers in https://git.vdb.to/cerc-io/laconicd-stack/src/branch/main/node-addresses.yml
cerc_peers: "<node-id>@<node-host>:26656,<node-id>@<node-host>:26656"
```

View File

@ -2,7 +2,7 @@ cerc_moniker: "LaconicMainnetNode"
cerc_chain_id: "laconic-mainnet"
min_gas_price: 0.001
cerc_loglevel: "info"
key_name: "validator"
key_name: "laconic-validator"
pvt_key: ""
genesis_file:
staking_amount_file:
genesis_file: ""
staking_amount_file: ""

View File

@ -1,7 +1,7 @@
cerc_moniker: "LaconicMainnetNode"
cerc_chain_id: "laconic-mainnet"
min_gas_price: 0.001
cerc_loglevel: "info"
genesis_file: "~/cerc/laconicd-stack/config/mainnet-genesis.json"
staking_amount_file: "~/cerc/laconicd-stack/config/staking-amount.json"
cerc_moniker: ""
cerc_peers: ""

View File

@ -53,7 +53,6 @@ else
sed -i 's/prometheus = false/prometheus = true/g' $NODE_HOME/config/config.toml
fi
echo "Starting laconicd node..."
laconicd start \
--api.enable \