https://github.com/bcdevtools/node-management
Cosmos-SDK & Tendermint/CometBFT-based node management daemon
https://github.com/bcdevtools/node-management
Last synced: 5 months ago
JSON representation
Cosmos-SDK & Tendermint/CometBFT-based node management daemon
- Host: GitHub
- URL: https://github.com/bcdevtools/node-management
- Owner: bcdevtools
- License: other
- Created: 2024-05-18T05:15:44.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-05-29T06:58:09.000Z (about 1 year ago)
- Last Synced: 2025-05-29T07:52:06.244Z (about 1 year ago)
- Language: Go
- Size: 311 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Install
```bash
git clone https://github.com/bcdevtools/node-management
cd node-management
make install
```
## Node setup check
- Validator node
- RPC node
- Snapshot node
- Archival node
```bash
nmngd node setup-check ~/.node_home --type validator/rpc/snapshot/archival
```
## Node management
```bash
nmngd node extract-addrbook ~/.node_home_source/config/addrbook.json ~/.node_home_dst/config/addrbook.json [--last-success-threshold 48h]
nmngd node prune-addrbook ~/.node_home/config/addrbook.json
nmngd node prune-data ~/.node_home --binary xxxd [--backup-pvs ~/priv_validator_state.json.backup]
nmngd node state-sync ~/.node_home --binary xxxd --rpc http://localhost:26657 [--address-book /home/x/.node/config/addrbook.json] [--peers nodeid@127.0.0.1:26656] [--seeds seed@1.1.1.1:26656] [--max-duration 12h]
nmngd node dump-snapshot ~/.node_home --binary xxxd [--max-duration 1h] [--no-service] [--service-name xxx] [--external-rpc https://rpc1.example.com:443 --external-rpc https://rpc2.example.com:443] [--fix-genesis]
nmngd node zip-snapshot ~/.node_home
```
### For validator node
```bash
nmngd node auto-backup-priv-validator-state-json ~/.node_home --binary xxxd
# generate setup for auto-backup-pvs
nmngd node auto-backup-priv-validator-state-json ~/.node_home --binary xxxd --gen-setup
```
## Run web server
```bash
nmngd start-web ~/.rpc-gaia \
--port 8080 \
--authorization-token "X" \
--chain-name "Cosmos Hub" \
--chain-description "Multi-lines describes the chain\nand its features" \
--chain-id cosmoshub-4 \
--g-binary-name gaid \
--g-node-home-name .gaia \
--snapshot-file /snapshot/cosmos-mainnet/snapshot.tar.lz \
--snapshot-download-url https://cosmos.m.valoper.io/snapshot/snapshot.tar.lz \
--exr-rpc-url https://rpc1.cosmos.m.valoper.io \
--exr-rest-url https://rest1.cosmos.m.valoper.io \
--exr-favicon-url https://cosmos.m.valoper.io/favicon.ico \
--exr-logo-url https://cosmos.m.valoper.io/logo.png \
--monitor-disks /mount/data1 --monitor-disks /mount/data2
```
Generate start command:
```bash
nmngd gen-start-web
```
## Nginx config generator
```bash
nmngd gen-nginx \
--rpc rpc.mychain.testnet.example.com \
--rest rest.mychain.testnet.example.com \
--jsonrpc jsonrpc.mychain.testnet.example.com \
--web mychain.testnet.example.com \
[--rpc-port 26657] \
[--rest-port 1317] \
[--jsonrpc-port 8545] \
[--web-port 8080]
```
## Generate SSH keys
```bash
nmngd keys add-snapshot-upload-ssh-key
# nmngd keys ss
```