mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-26 08:15:19 +00:00
update env vars
This commit is contained in:
parent
f66cc46e47
commit
d0331307dc
@ -5,7 +5,7 @@ function help() {
|
|||||||
echo ""
|
echo ""
|
||||||
echo " -i Identity file"
|
echo " -i Identity file"
|
||||||
echo " -k Keyring password to create key (for Linux only)"
|
echo " -k Keyring password to create key (for Linux only)"
|
||||||
echo " -n Network (default: testnet)"
|
echo " -n Network (default: devnet)"
|
||||||
echo " -c Chain ID (default: \"zgtendermint_16600-1\")"
|
echo " -c Chain ID (default: \"zgtendermint_16600-1\")"
|
||||||
echo ""
|
echo ""
|
||||||
}
|
}
|
||||||
@ -21,7 +21,7 @@ IP_LIST=$1
|
|||||||
shift
|
shift
|
||||||
PEM_FLAG=""
|
PEM_FLAG=""
|
||||||
KEYRING_PASSWORD=""
|
KEYRING_PASSWORD=""
|
||||||
NETWORK="testnet"
|
NETWORK="devnet"
|
||||||
INIT_GENESIS_ENV=""
|
INIT_GENESIS_ENV=""
|
||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
@ -56,11 +56,11 @@ NUM_NODES=${#IPS[@]}
|
|||||||
|
|
||||||
# Install dependent libraries and binary
|
# Install dependent libraries and binary
|
||||||
for ((i=0; i<$NUM_NODES; i++)) do
|
for ((i=0; i<$NUM_NODES; i++)) do
|
||||||
ssh $PEM_FLAG ubuntu@${IPS[$i]} "rm -rf 0g-chain; git clone https://github.com/0glabs/0g-chain.git; cd 0g-chain; git checkout patch_testnet_1; ./networks/testnet/install.sh"
|
ssh $PEM_FLAG ubuntu@${IPS[$i]} "rm -rf 0g-chain; git clone https://github.com/0glabs/0g-chain.git; cd 0g-chain; git checkout patch_testnet_1; ./networks/devnet/install.sh"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Create genesis config on node0
|
# Create genesis config on node0
|
||||||
ssh $PEM_FLAG ubuntu@${IPS[0]} "cd 0g-chain/networks/testnet; $INIT_GENESIS_ENV ./init-genesis.sh $IP_LIST $KEYRING_PASSWORD; tar czf ~/$NETWORK.tar.gz $NETWORK; rm -rf $NETWORK"
|
ssh $PEM_FLAG ubuntu@${IPS[0]} "cd 0g-chain/networks/devnet; $INIT_GENESIS_ENV ./init-genesis.sh $IP_LIST $KEYRING_PASSWORD; tar czf ~/$NETWORK.tar.gz $NETWORK; rm -rf $NETWORK"
|
||||||
scp $PEM_FLAG ubuntu@${IPS[0]}:$NETWORK.tar.gz .
|
scp $PEM_FLAG ubuntu@${IPS[0]}:$NETWORK.tar.gz .
|
||||||
ssh $PEM_FLAG ubuntu@${IPS[0]} "rm $NETWORK.tar.gz"
|
ssh $PEM_FLAG ubuntu@${IPS[0]} "rm $NETWORK.tar.gz"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user