This tool is intended to provide a simple, reliable command line utility for manageing the cudos-noded daemon, configuration files and database. Any higher level scripts provided to execute system level events, upgrades and hard forks for example, should use the primitives in this script for all daemon control.
For a working example see: https://github.com/CudoVentures/cudos-noded-packager/blob/main/SOURCES/cudos-init-node.sh
cudos-noded-ctl set seeds "$CUDOS_HOME"/config/seeds.config
cudos-noded-ctl [-h] <command> [command_options]
Fills in the "seeds =" variable in config.toml with the contents of <filename>
eg:
/var/lib/cudos/cudos-data/config/seeds.config
This file is installed by the "cudos-network-??" package. For public testnet this would be cudos-network-public-testnet package.
The contents of the file must be a single line, comma separated list of seed nodes to connect to in the form:
<tendermint ID>@<IP address or hostname>:<Port number>[,<tendermint ID>@<IP address or hostname>:<Port number>
eg
The use of this format is required in order to integrate with the files in: https://github.com/CudoVentures/cudos-builders/tree/cudos-master/docker/config
contains a comma separated list of nodes to keep persistent connections to
Fills in the persistent_peers =
variable in config.toml with the the contents of <filename>
eg
/var/lib/cudos/cudos-data/config/persistent-peers.config
This file is installed empty by the "cudos-network-??" package as each node will have its own set of persistent peers.
The contents of the file must be a single line, comma separated list of sentry nodes to connect to in the same form as for the seeds variable
The use of this format is required in order to integrate with the files in: https://github.com/CudoVentures/cudos-builders/tree/cudos-master/docker/config
contains a comma separated list of peer IDs to keep private (will not be gossiped to other peers)
This fills in the private_peer_ids =
variable in config.toml using the contents of the <filename>
.
The contents of the file must be a single line, comma separated list of tendermint ids in the form:
<tendermint ID>[,<tendermint ID>]
eg
86a2f5d723718a03fred36dc792d14c42ba0bd3f,a48e90cdfred01c40bc4352794f034880c2f2041,f93e129f120fd1de3fred0d2bd376ae96af325dd
The use of this format is required in order to integrate with the files in: https://github.com/CudoVentures/cudos-builders/tree/cudos-master/docker/config
contains a comma separated list of node IDs, to which a connection will be (re)established ignoring any existing limits
This fills in the unconditional_peer_ids =
variable in config.toml using the contents of the <filename>
.
The contents of the file must be a single line, comma separated list of tendermint ids in the form:
<tendermint ID>[,<tendermint ID>]
eg
86a2f5d723718a03fred36dc792d14c42ba0bd3f,a48e90cdfred01c40bc4352794f034880c2f2041,f93e129f120fd1de3fred0d2bd376ae96af325dd
The use of this format is required in order to integrate with the files in: https://github.com/CudoVentures/cudos-builders/tree/cudos-master/docker/config
Set true to enable the peer-exchange reactor
Default: pex = true
Activate unsafe RPC commands like /dial_seeds and /unsafe_flush_mempool
Default: unsafe = false
When true, Prometheus metrics are served under /metrics on PrometheusListenAddr. Check out the documentation for the list of available metrics.
Default: prometheus = true