parent
62d6fd2f98
commit
5ce9b9af5a
2
Makefile
2
Makefile
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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, ...)")
|
||||
|
|
Loading…
Reference in New Issue