[feature request] Run local (Single Node Testnet ) development network quickly
paulvi opened this issue · 4 comments
paulvi commented
Is your feature request related to a problem? Please describe.
local dev network is first stage for running any test as it is the easiest to run and needs least resources
Describe the solution you'd like
I'd like to run local dev network, easy with something like
iris --dev
Describe alternatives you've considered
Currently (iris v1.1.1) does not have this option
irishub % iris version
1.1.1
irishub % which iris
/Users/paul/go/bin/iris
irishub % iris --help
IRIS Hub app command
Usage:
iris [command]
Available Commands:
add-genesis-account Add a genesis account to genesis.json
collect-gentxs Collect genesis txs and output a genesis.json file
debug Tool for helping with debugging your application
export Export state to JSON
gentx Generate a genesis tx carrying a self delegation
help Help about any command
init Initialize private validator, p2p, genesis, and application configuration files
keys Manage your application's keys
query Querying subcommands
start Run the full node
status Query remote node for status
tendermint Tendermint subcommands
testnet Initialize files for a simapp testnet
tx Transactions subcommands
unsafe-reset-all Resets the blockchain database, removes address book files, and resets data/priv_validator_state.json to the genesis state
validate-genesis validates the genesis file at the default location or at the location passed as an arg
version Print the application binary version information
Flags:
-h, --help help for iris
--home string directory for config and data (default "/Users/paul.verest/.iris")
--log_format string The logging format (json|plain) (default "plain")
--log_level string The logging level (trace|debug|info|warn|error|fatal|panic) (default "info")
--trace print out full stack trace on errors
Use "iris [command] --help" for more information about a command.
Additional context
paulvi commented
I found Single Node Testnet in docs
in https://www.irisnet.org/docs/daemon/local-testnet.html#single-node-testnet
but it has many steps instead of just one parameter.
chengwenxi commented
@paulvi A simple way is
iris testnet --v 1
zhangyelong commented
@paulvi Here is the multiple nodes testnet doc , is this meet your requirements?
# Build the linux binary in ./build
make build-linux
# Quick init a 4-node testnet configs
make testnet-init
# Quick start
make testnet-start
zhangyelong commented
Closing stale issue, if you still have problems on this issue, please reopen it :)