regen testnet init-files

Initialize config directories & files for a multi-validator testnet running locally via separate processes (e.g. Docker Compose or similar)

Synopsis

init-files will setup "v" number of directories and populate each with necessary files (private validator, genesis, config, etc.) for running "v" validator nodes.

Booting up a network with these validator folders is intended to be used with Docker Compose, or a similar setup where each node has a manually configurable IP address.

Note, strict routability for addresses is turned off in the config file.

Example: regen testnet init-files --v 4 --output-dir ./.localnet --starting-ip-address 192.168.10.2

regen testnet init-files [flags]

Options

      --algo string                  Key signing algorithm to generate keys for (default "secp256k1")
      --chain-id string              genesis file chain-id, if left blank will be randomly created
  -h, --help                         help for init-files
      --keyring-backend string       Select keyring's backend (os|file|test) (default "os")
      --minimum-gas-prices string    Minimum gas prices to accept for transactions; All fees in a tx must meet this minimum (e.g. 0.01uregen) (default "0.000006stake")
      --node-daemon-home string      Home directory of the node's daemon configuration (default "regen")
      --node-dir-prefix string       Prefix the directory name for each node with (node results in node0, node1, ...) (default "node")
  -o, --output-dir string            Directory to store initialization data for the testnet (default "./.localnet")
      --starting-ip-address string   Starting IP address (192.168.0.1 results in persistent peers list ID0@192.168.0.1:46656, ID1@192.168.0.2:46656, ...) (default "192.168.0.1")
      --v int                        Number of validators to initialize the testnet with (default 4)

SEE ALSO

  • regen testnet - subcommands for starting or configuring local testnets
Auto generated by spf13/cobra on 3-Apr-2024