From cab934f2b12e6f06909012fb40e114cad560e57d Mon Sep 17 00:00:00 2001 From: Daniel Van Der Maden Date: Wed, 11 Mar 2020 11:43:55 -0700 Subject: [PATCH] [node.sh] Add extra network options and update help msgs --- cmd/harmony/main.go | 2 +- scripts/node.sh | 21 +++++++++++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/cmd/harmony/main.go b/cmd/harmony/main.go index feb34e11f..5397bc57e 100644 --- a/cmd/harmony/main.go +++ b/cmd/harmony/main.go @@ -90,7 +90,7 @@ var ( // nodeType indicates the type of the node: validator, explorer nodeType = flag.String("node_type", "validator", "node type: validator, explorer") // networkType indicates the type of the network - networkType = flag.String("network_type", "mainnet", "type of the network: mainnet, testnet, devnet, localnet") + networkType = flag.String("network_type", "mainnet", "type of the network: mainnet, testnet, pangaea, partner, stressnet, devnet, localnet") // syncFreq indicates sync frequency syncFreq = flag.Int("sync_freq", 60, "unit in seconds") // beaconSyncFreq indicates beaconchain sync frequency diff --git a/scripts/node.sh b/scripts/node.sh index 32e3de9a5..58b1bad41 100755 --- a/scripts/node.sh +++ b/scripts/node.sh @@ -108,7 +108,7 @@ options: -d just download the Harmony binaries (default: off) -D do not download Harmony binaries (default: download when start) -m collect and upload node metrics to harmony prometheus + grafana - -N network join the given network (mainnet, testnet, devnet; default: mainnet) + -N network join the given network (mainnet, testnet, staking, partner, stress, devnet; default: mainnet) -n port specify the public base port of the node (default: 9000) -t equivalent to -N testnet (deprecated) -T nodetype specify the node type (validator, explorer; default: validator) @@ -255,7 +255,7 @@ mainnet) network_type=mainnet dns_zone=t.hmny.io ;; -testnet) +testnet) # TODO: update Testnet configs once LRTN is upgraded bootnodes=( /ip4/54.218.73.167/tcp/9876/p2p/QmWBVCPXQmc2ULigm3b9ayCZa15gj25kywiQQwPhHCZeXj /ip4/18.232.171.117/tcp/9876/p2p/QmfJ71Eb7XTDs8hX2vPJ8un4L7b7RiDk6zCzWVxLXGA6MA @@ -273,6 +273,23 @@ staking) network_type=pangaea dns_zone=os.hmny.io ;; +partner) + bootnodes=( + /ip4/52.40.84.2/tcp/9800/p2p/QmbPVwrqWsTYXq1RxGWcxx9SWaTUCfoo1wA6wmdbduWe29 + /ip4/54.86.126.90/tcp/9800/p2p/Qmdfjtk6hPoyrH1zVD9PEH4zfWLo38dP2mDvvKXfh3tnEv + ) + REL=partner + network_type=partner + dns_zone=ps.hmny.io + ;; +stress) + bootnodes=( + /ip4/52.40.84.2/tcp/9842/p2p/QmbPVwrqWsTYXq1RxGWcxx9SWaTUCfoo1wA6wmdbduWe29 + ) + REL=stressnet + network_type=stressnet + dns_zone=stn.hmny.io + ;; devnet) bootnodes=( /ip4/52.40.84.2/tcp/9870/p2p/QmZJJx6AdaoEkGLrYG4JeLCKeCKDjnFz2wfHNHxAqFSGA9