Merge PR #2015: Change gaiad testnet example output flag

Closes #1960.
This commit is contained in:
Matthew Slipper 2018-08-21 20:28:16 -07:00 committed by Rigel
parent 62d6fd2f98
commit 5ce9b9af5a
3 changed files with 4 additions and 4 deletions

View File

@ -204,7 +204,7 @@ build-docker-gaiadnode:
# Run a 4-node testnet locally
localnet-start: localnet-stop
@if ! [ -f build/node0/gaiad/config/genesis.json ]; then docker run --rm -v $(CURDIR)/build:/gaiad:Z tendermint/gaiadnode testnet --v 4 --o . --starting-ip-address 192.168.10.2 ; fi
@if ! [ -f build/node0/gaiad/config/genesis.json ]; then docker run --rm -v $(CURDIR)/build:/gaiad:Z tendermint/gaiadnode testnet --v 4 -o . --starting-ip-address 192.168.10.2 ; fi
docker-compose up -d
# Stop testnet

View File

@ -61,7 +61,7 @@ rm -rf ./build
make build-linux
# Create configuration
docker run -v `pwd`/build:/gaiad tendermint/gaiadnode testnet --o . --v 1
docker run -v `pwd`/build:/gaiad tendermint/gaiadnode testnet -o . --v 1
#Run the node
docker run -v `pwd`/build:/gaiad tendermint/gaiadnode

View File

@ -20,7 +20,7 @@ import (
var (
nodeDirPrefix = "node-dir-prefix"
nValidators = "v"
outputDir = "o"
outputDir = "output-dir"
startingIPAddress = "starting-ip-address"
)
@ -49,7 +49,7 @@ Example:
}
cmd.Flags().Int(nValidators, 4,
"Number of validators to initialize the testnet with")
cmd.Flags().String(outputDir, "./mytestnet",
cmd.Flags().StringP(outputDir, "o", "./mytestnet",
"Directory to store initialization data for the testnet")
cmd.Flags().String(nodeDirPrefix, "node",
"Prefix the directory name for each node with (node results in node0, node1, ...)")