Skip to content

Commit

Permalink
Merge pull request #1177 from ainblockchain/release/v1.0.15
Browse files Browse the repository at this point in the history
Release/v1.0.15
  • Loading branch information
platfowner authored May 26, 2023
2 parents 4acaf02 + f531244 commit 8aaa0cc
Show file tree
Hide file tree
Showing 9 changed files with 310 additions and 219 deletions.
2 changes: 1 addition & 1 deletion blockchain-configs/testnet-prod/node_params.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"SNAPSHOTS_INTERVAL_BLOCK_NUMBER": 1000,
"SYNC_MODE": "fast",
"TARGET_NUM_OUTBOUND_CONNECTION": 3,
"TRACKER_UPDATE_JSON_RPC_URL": "NEED TO BE SET DIFFERENTLY FOR SPRING & SUMMER",
"TRACKER_UPDATE_JSON_RPC_URL": "http://35.221.137.80:8080/json-rpc",
"TRACKER_UPDATE_INTERVAL_MS": 15000,
"TRAFFIC_DB_INTERVAL_MS": 60000,
"TRAFFIC_DB_MAX_INTERVALS": 60,
Expand Down
3 changes: 3 additions & 0 deletions client/protocol_versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,8 @@
},
"1.0.14": {
"min": "1.0.0"
},
"1.0.15": {
"min": "1.0.0"
}
}
291 changes: 179 additions & 112 deletions deploy_blockchain_genesis_gcp.sh

Large diffs are not rendered by default.

72 changes: 45 additions & 27 deletions deploy_blockchain_incremental_gcp.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/bash

if [[ $# -lt 4 ]] || [[ $# -gt 11 ]]; then
printf "Usage: bash deploy_blockchain_incremental_gcp.sh [dev|staging|sandbox|exp|spring|summer|mainnet] <# of Shards> <Begin Parent Node Index> <End Parent Node Index> [--setup] [--keystore|--mnemonic|--private-key] [--keep-code|--no-keep-code] [--keep-data|--no-keep-data] [--full-sync|--fast-sync] [--chown-data|--no-chown-data]\n"
printf "Example: bash deploy_blockchain_incremental_gcp.sh dev 0 -1 9 --keystore --no-keep-code --keep-data\n"
printf "Example: bash deploy_blockchain_incremental_gcp.sh dev 0 0 0 --keystore --keep-code --keep-data\n"
printf "Example: bash deploy_blockchain_incremental_gcp.sh dev 0 0 0 --setup --keystore --no-keep-code --keep-data\n"
printf "Usage: bash deploy_blockchain_incremental_gcp.sh [dev|staging|sandbox|exp|spring|summer|mainnet] <# of Shards> <Parent Node Index Begin> <Parent Node Index End> [--setup] [--keystore|--mnemonic|--private-key] [--keep-code|--no-keep-code] [--keep-data|--no-keep-data] [--full-sync|--fast-sync] [--chown-data|--no-chown-data]\n"
printf "Example: bash deploy_blockchain_incremental_gcp.sh dev 0 -1 4 --keystore --no-keep-code\n"
printf "Example: bash deploy_blockchain_incremental_gcp.sh dev 0 0 0 --keystore --keep-code\n"
printf "Example: bash deploy_blockchain_incremental_gcp.sh dev 0 -1 -1 --setup --keystore --no-keep-code\n"
printf "Note: <Begin Parent Node Index> = -1 is for tracker\n"
printf "Note: <End Parent Node Index> is inclusive\n"
printf "Example: bash deploy_blockchain_incremental_gcp.sh dev 0 0 0 --setup --keystore --no-keep-code\n"
printf "Note: <Parent Node Index Begin> = -1 is for tracker\n"
printf "Note: <Parent Node Index End> is inclusive\n"
printf "\n"
exit
fi
Expand Down Expand Up @@ -39,10 +39,10 @@ if ! [[ $2 =~ $number_re ]] ; then
fi
NUM_SHARDS=$2
printf "NUM_SHARDS=$NUM_SHARDS\n"
BEGIN_PARENT_NODE_INDEX=$3
printf "BEGIN_PARENT_NODE_INDEX=$BEGIN_PARENT_NODE_INDEX\n"
END_PARENT_NODE_INDEX=$4
printf "END_PARENT_NODE_INDEX=$END_PARENT_NODE_INDEX\n"
PARENT_NODE_INDEX_BEGIN=$3
printf "PARENT_NODE_INDEX_BEGIN=$PARENT_NODE_INDEX_BEGIN\n"
PARENT_NODE_INDEX_END=$4
printf "PARENT_NODE_INDEX_END=$PARENT_NODE_INDEX_END\n"
printf "\n"

function parse_options() {
Expand Down Expand Up @@ -98,6 +98,24 @@ printf "KEEP_DATA_OPTION=$KEEP_DATA_OPTION\n"
printf "SYNC_MODE_OPTION=$SYNC_MODE_OPTION\n"
printf "CHOWN_DATA_OPTION=$CHOWN_DATA_OPTION\n"

# Json-RPC-enabled blockchain nodes
JSON_RPC_NODE_INDEX_GE=0
JSON_RPC_NODE_INDEX_LE=4
# Rest-Function-enabled blockchain nodes
REST_FUNC_NODE_INDEX_GE=0
REST_FUNC_NODE_INDEX_LE=2
# Event-Handler-enabled blockchain nodes
EVENT_HANDLER_NODE_INDEX_GE=3
EVENT_HANDLER_NODE_INDEX_LE=4

printf "\n"
printf "JSON_RPC_NODE_INDEX_GE=$JSON_RPC_NODE_INDEX_GE\n"
printf "JSON_RPC_NODE_INDEX_LE=$JSON_RPC_NODE_INDEX_LE\n"
printf "REST_FUNC_NODE_INDEX_LE=$REST_FUNC_NODE_INDEX_LE\n"
printf "REST_FUNC_NODE_INDEX_GE=$REST_FUNC_NODE_INDEX_GE\n"
printf "EVENT_HANDLER_NODE_INDEX_GE=$EVENT_HANDLER_NODE_INDEX_GE\n"
printf "EVENT_HANDLER_NODE_INDEX_LE=$EVENT_HANDLER_NODE_INDEX_LE\n"

if [[ "$ACCOUNT_INJECTION_OPTION" = "" ]]; then
printf "Must provide an ACCOUNT_INJECTION_OPTION\n"
exit
Expand Down Expand Up @@ -225,18 +243,18 @@ function deploy_node() {
# 3. Start node
printf "\n\n<<< Starting node $node_index >>>\n\n"

if [[ $node_index -ge 5 ]]; then
if [[ $node_index -ge $JSON_RPC_NODE_INDEX_GE ]] && [[ $node_index -le $JSON_RPC_NODE_INDEX_LE ]]; then
JSON_RPC_OPTION="--json-rpc"
else
JSON_RPC_OPTION=""
fi
UPDATE_FRONT_DB_OPTION="--update-front-db"
if [[ $node_index -ge 5 ]] && [[ $node_index -lt 8 ]]; then
if [[ $node_index -ge $REST_FUNC_NODE_INDEX_GE ]] && [[ $node_index -le $REST_FUNC_NODE_INDEX_LE ]]; then
REST_FUNC_OPTION="--rest-func"
else
REST_FUNC_OPTION=""
fi
if [[ $node_index -ge 8 ]] && [[ $node_index -lt 10 ]]; then
if [[ $node_index -ge $EVENT_HANDLER_NODE_INDEX_GE ]] && [[ $node_index -le $EVENT_HANDLER_NODE_INDEX_LE ]]; then
EVENT_HANDLER_OPTION="--event-handler"
else
EVENT_HANDLER_OPTION=""
Expand Down Expand Up @@ -337,36 +355,36 @@ else
START_NODE_CMD_BASE="$GO_TO_PROJECT_ROOT_CMD && . start_node_incremental_gcp.sh"
fi

# Tracker server is deployed with BEGIN_PARENT_NODE_INDEX = -1
if [[ $BEGIN_PARENT_NODE_INDEX = -1 ]]; then
# Tracker server is deployed with PARENT_NODE_INDEX_BEGIN = -1
if [[ $PARENT_NODE_INDEX_BEGIN = -1 ]]; then
deploy_tracker
fi
begin_index=$BEGIN_PARENT_NODE_INDEX
begin_index=$PARENT_NODE_INDEX_BEGIN
if [[ $begin_index -lt 0 ]]; then
begin_index=0
fi
if [[ $begin_index -le $END_PARENT_NODE_INDEX ]] && [[ $END_PARENT_NODE_INDEX -ge 0 ]]; then
for j in `seq $(( $begin_index )) $(( $END_PARENT_NODE_INDEX ))`; do
deploy_node "$j"
if [[ $begin_index -le $PARENT_NODE_INDEX_END ]] && [[ $PARENT_NODE_INDEX_END -ge 0 ]]; then
for node_index in `seq $(( $begin_index )) $(( $PARENT_NODE_INDEX_END ))`; do
deploy_node "$node_index"
sleep 40
done
fi

if [[ $NUM_SHARDS -gt 0 ]]; then
for i in $(seq $NUM_SHARDS); do
for shard_index in $(seq $NUM_SHARDS); do
printf "###############################################################################\n"
printf "# Deploying shard $i blockchain #\n"
printf "# Deploying shard $shard_index blockchain #\n"
printf "###############################################################################\n\n"

TRACKER_TARGET_ADDR="${GCP_USER}@${SEASON}-shard-${i}-tracker-taiwan"
TRACKER_TARGET_ADDR="${GCP_USER}@${SEASON}-shard-${shard_index}-tracker-taiwan"
NODE_TARGET_ADDR_LIST=( \
"${GCP_USER}@${SEASON}-shard-${i}-node-0-taiwan" \
"${GCP_USER}@${SEASON}-shard-${i}-node-1-oregon" \
"${GCP_USER}@${SEASON}-shard-${i}-node-2-singapore")
"${GCP_USER}@${SEASON}-shard-${shard_index}-node-0-taiwan" \
"${GCP_USER}@${SEASON}-shard-${shard_index}-node-1-oregon" \
"${GCP_USER}@${SEASON}-shard-${shard_index}-node-2-singapore")

deploy_tracker "$NUM_SHARD_NODES"
for j in `seq 0 $(( ${NUM_SHARD_NODES} - 1 ))`; do
deploy_node "$j"
for node_index in `seq 0 $(( ${NUM_SHARD_NODES} - 1 ))`; do
deploy_node "$node_index"
done
done
fi
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ain-blockchain",
"description": "AI Network Blockchain",
"version": "1.0.14",
"version": "1.0.15",
"private": true,
"license": "MIT",
"author": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion start_node_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ if [[ $SEASON = 'mainnet' ]]; then
elif [[ $SEASON = 'summer' ]]; then
export BLOCKCHAIN_CONFIGS_DIR=blockchain-configs/testnet-prod
export TRACKER_UPDATE_JSON_RPC_URL="http://35.194.172.106:8080/json-rpc"
export PEER_CANDIDATE_JSON_RPC_URL="http://35.194.169.78:8080/json-rpc"
elif [[ $SEASON = 'spring' ]]; then
export BLOCKCHAIN_CONFIGS_DIR=blockchain-configs/testnet-prod
export TRACKER_UPDATE_JSON_RPC_URL="http://35.221.137.80:8080/json-rpc"
elif [[ $SEASON = 'sandbox' ]]; then
export BLOCKCHAIN_CONFIGS_DIR=blockchain-configs/testnet-sandbox
elif [[ $SEASON = 'staging' ]]; then
Expand Down
69 changes: 39 additions & 30 deletions start_node_genesis_gcp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,17 @@ printf "UPDATE_FRONT_DB_OPTION=$UPDATE_FRONT_DB_OPTION\n"
printf "REST_FUNC_OPTION=$REST_FUNC_OPTION\n"
printf "EVENT_HANDLER_OPTION=$EVENT_HANDLER_OPTION\n"

# Peer-whitelisting-enabled blockchain nodes
# Peer whitelisting is disabled now with 5 core blockchain nodes on GCP.
#PEER_WHITELIST_NODE_INDEX_GE=0
#PEER_WHITELIST_NODE_INDEX_LE=4
PEER_WHITELIST_NODE_INDEX_GE=-1
PEER_WHITELIST_NODE_INDEX_LE=-1

printf "\n"
printf "PEER_WHITELIST_NODE_INDEX_GE=$PEER_WHITELIST_NODE_INDEX_GE\n"
printf "PEER_WHITELIST_NODE_INDEX_LE=$PEER_WHITELIST_NODE_INDEX_LE\n"

# NOTE(liayoo): Currently this script supports [--keystore|--mnemonic] option only for the parent chain.
if [[ $ACCOUNT_INJECTION_OPTION != "--private_key" ]] && [[ "$SHARD_INDEX" -gt 0 ]]; then
printf 'Invalid account injection option\n'
Expand Down Expand Up @@ -194,23 +205,21 @@ fi

if [[ $SEASON = 'mainnet' ]]; then
export BLOCKCHAIN_CONFIGS_DIR=blockchain-configs/mainnet-prod
export TRACKER_UPDATE_JSON_RPC_URL=http://34.81.167.141:8080/json-rpc
export PEER_CANDIDATE_JSON_RPC_URL="http://104.199.237.250:8080/json-rpc"
if [[ $NODE_INDEX -lt 5 ]]; then
if [[ $NODE_INDEX -ge $PEER_WHITELIST_NODE_INDEX_GE ]] && [[ $NODE_INDEX -le $PEER_WHITELIST_NODE_INDEX_LE ]]; then
export PEER_WHITELIST="0x000C63907F7Aeca56A72F5a4F7cd00EfFCF11c3A,0x001C3C9C4a5669eCD8b78946f6fa5549b33362F8,0x002C76f0aeA9Ba615428d9dF7fedEC6f8ed5369f,0x003C9d091584fEC96bC3bD8423c884680BEAaf4E,0x004C4328B6c2ABF7c4Df897a8124b36E3f00a2FC,0x005C99Db64845e5BF24cd152b22c932989479907,0x006C672861e9DBb09232307c17Be6554BC90687c,0x007C36bf5D0F77836eE138EEAc8df7051b43209b,0x008C287187a5626D0a25DbD67327B36AC55B998E,0x009C66DBce144003f8C4B859fFFce78F80fDD639"
fi
elif [[ $SEASON = 'summer' ]]; then
export BLOCKCHAIN_CONFIGS_DIR=blockchain-configs/testnet-prod
export TRACKER_UPDATE_JSON_RPC_URL=http://35.194.172.106:8080/json-rpc
export TRACKER_UPDATE_JSON_RPC_URL="http://35.194.172.106:8080/json-rpc"
export PEER_CANDIDATE_JSON_RPC_URL="http://35.194.169.78:8080/json-rpc"
if [[ $NODE_INDEX -lt 5 ]]; then
if [[ $NODE_INDEX -ge $PEER_WHITELIST_NODE_INDEX_GE ]] && [[ $NODE_INDEX -le $PEER_WHITELIST_NODE_INDEX_LE ]]; then
export PEER_WHITELIST="0x000AF024FEDb636294867bEff390bCE6ef9C5fc4,0x001Ac309EFFFF6d307CbC2d09C811aCD7dD8A35d,0x002A273ECd3aAEc4d8748f4E06eAdE3b34d83211,0x003AD6FdB06684175e7D95EcC36758B014517E4b,0x004A2550661c8a306207C9dabb279d5701fFD66e,0x005A3c55EcE1A593b761D408B6E6BC778E0a638B,0x006Af719E197bC81BBb75d2fec7Ea217D1750bAe,0x007Ac58EAc5F0D0bDd10Af8b90799BcF849c2E74,0x008AeBc041B7ceABc53A4cf393ccF16c10c29dba,0x009A97c0cF07fdbbcdA1197aE11792258b6EcedD"
fi
elif [[ $SEASON = 'spring' ]]; then
export BLOCKCHAIN_CONFIGS_DIR=blockchain-configs/testnet-prod
export TRACKER_UPDATE_JSON_RPC_URL=http://35.221.137.80:8080/json-rpc
export PEER_CANDIDATE_JSON_RPC_URL="http://35.221.184.48:8080/json-rpc"
if [[ $NODE_INDEX -lt 5 ]]; then
if [[ $NODE_INDEX -ge $PEER_WHITELIST_NODE_INDEX_GE ]] && [[ $NODE_INDEX -le $PEER_WHITELIST_NODE_INDEX_LE ]]; then
export PEER_WHITELIST="0x000AF024FEDb636294867bEff390bCE6ef9C5fc4,0x001Ac309EFFFF6d307CbC2d09C811aCD7dD8A35d,0x002A273ECd3aAEc4d8748f4E06eAdE3b34d83211,0x003AD6FdB06684175e7D95EcC36758B014517E4b,0x004A2550661c8a306207C9dabb279d5701fFD66e,0x005A3c55EcE1A593b761D408B6E6BC778E0a638B,0x006Af719E197bC81BBb75d2fec7Ea217D1750bAe,0x007Ac58EAc5F0D0bDd10Af8b90799BcF849c2E74,0x008AeBc041B7ceABc53A4cf393ccF16c10c29dba,0x009A97c0cF07fdbbcdA1197aE11792258b6EcedD"
fi
elif [[ "$SEASON" = "sandbox" ]]; then
Expand All @@ -219,68 +228,68 @@ elif [[ "$SEASON" = "sandbox" ]]; then
# Nodes 10 & above will use https://sandbox-api.ainetwork.ai/json-rpc.
export PEER_CANDIDATE_JSON_RPC_URL="http://130.211.244.169:8080/json-rpc"
fi
if [[ $NODE_INDEX -lt 5 ]]; then
if [[ $NODE_INDEX -ge $PEER_WHITELIST_NODE_INDEX_GE ]] && [[ $NODE_INDEX -le $PEER_WHITELIST_NODE_INDEX_LE ]]; then
export PEER_WHITELIST="0x00ADEc28B6a845a085e03591bE7550dd68673C1C,0x01A0980d2D4e418c7F27e1ef539d01A5b5E93204,0x02A2A1DF4f630d760c82BE07F18e5065d103Fa00,0x03AAb7b6f16A92A1dfe018Fe34ee420eb098B98A,0x04A456C92A880cd59D7145C457475515a6f6E0f2,0x05A1247A7400f0C2A893611adD1505743552c631,0x06AD9C8F611f1e9d9CACD4738167A51aA2e80a1A,0x07A43138CC760C85A5B1F115aa60eADEaa0bf417,0x08Aed7AF9354435c38d52143EE50ac839D20696b,0x09A0d53FDf1c36A131938eb379b98910e55EEfe1"
fi
elif [[ $SEASON = 'staging' ]]; then
export BLOCKCHAIN_CONFIGS_DIR=blockchain-configs/testnet-staging
export PEER_CANDIDATE_JSON_RPC_URL="http://35.194.139.219:8080/json-rpc"
if [[ $NODE_INDEX -lt 5 ]]; then
if [[ $NODE_INDEX -ge $PEER_WHITELIST_NODE_INDEX_GE ]] && [[ $NODE_INDEX -le $PEER_WHITELIST_NODE_INDEX_LE ]]; then
export PEER_WHITELIST="0x00ADEc28B6a845a085e03591bE7550dd68673C1C,0x01A0980d2D4e418c7F27e1ef539d01A5b5E93204,0x02A2A1DF4f630d760c82BE07F18e5065d103Fa00,0x03AAb7b6f16A92A1dfe018Fe34ee420eb098B98A,0x04A456C92A880cd59D7145C457475515a6f6E0f2,0x05A1247A7400f0C2A893611adD1505743552c631,0x06AD9C8F611f1e9d9CACD4738167A51aA2e80a1A,0x07A43138CC760C85A5B1F115aa60eADEaa0bf417,0x08Aed7AF9354435c38d52143EE50ac839D20696b,0x09A0d53FDf1c36A131938eb379b98910e55EEfe1"
fi
elif [[ $SEASON = 'exp' ]]; then
export BLOCKCHAIN_CONFIGS_DIR=blockchain-configs/testnet-exp
export PEER_CANDIDATE_JSON_RPC_URL="http://34.81.178.195:8080/json-rpc"
if [[ $NODE_INDEX -lt 5 ]]; then
if [[ $NODE_INDEX -ge $PEER_WHITELIST_NODE_INDEX_GE ]] && [[ $NODE_INDEX -le $PEER_WHITELIST_NODE_INDEX_LE ]]; then
export PEER_WHITELIST="0x00ADEc28B6a845a085e03591bE7550dd68673C1C,0x01A0980d2D4e418c7F27e1ef539d01A5b5E93204,0x02A2A1DF4f630d760c82BE07F18e5065d103Fa00,0x03AAb7b6f16A92A1dfe018Fe34ee420eb098B98A,0x04A456C92A880cd59D7145C457475515a6f6E0f2,0x05A1247A7400f0C2A893611adD1505743552c631,0x06AD9C8F611f1e9d9CACD4738167A51aA2e80a1A,0x07A43138CC760C85A5B1F115aa60eADEaa0bf417,0x08Aed7AF9354435c38d52143EE50ac839D20696b,0x09A0d53FDf1c36A131938eb379b98910e55EEfe1"
fi
elif [[ $SEASON = 'dev' ]]; then
export BLOCKCHAIN_CONFIGS_DIR=blockchain-configs/testnet-dev
if [[ $SHARD_INDEX = 0 ]]; then
export PEER_CANDIDATE_JSON_RPC_URL="http://35.194.235.180:8080/json-rpc"
if [[ $NODE_INDEX -lt 5 ]]; then
if [[ $NODE_INDEX -ge $PEER_WHITELIST_NODE_INDEX_GE ]] && [[ $NODE_INDEX -le $PEER_WHITELIST_NODE_INDEX_LE ]]; then
export PEER_WHITELIST="0x00ADEc28B6a845a085e03591bE7550dd68673C1C,0x01A0980d2D4e418c7F27e1ef539d01A5b5E93204,0x02A2A1DF4f630d760c82BE07F18e5065d103Fa00,0x03AAb7b6f16A92A1dfe018Fe34ee420eb098B98A,0x04A456C92A880cd59D7145C457475515a6f6E0f2,0x05A1247A7400f0C2A893611adD1505743552c631,0x06AD9C8F611f1e9d9CACD4738167A51aA2e80a1A,0x07A43138CC760C85A5B1F115aa60eADEaa0bf417,0x08Aed7AF9354435c38d52143EE50ac839D20696b,0x09A0d53FDf1c36A131938eb379b98910e55EEfe1"
fi
elif [[ $SHARD_INDEX = 1 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://35.187.153.22:8080/json-rpc # dev-shard-1-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://35.187.153.22:8080/json-rpc" # dev-shard-1-tracker-ip
elif [[ $SHARD_INDEX = 2 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://34.80.203.104:8080/json-rpc # dev-shard-2-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://34.80.203.104:8080/json-rpc" # dev-shard-2-tracker-ip
elif [[ $SHARD_INDEX = 3 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://35.189.174.17:8080/json-rpc # dev-shard-3-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://35.189.174.17:8080/json-rpc" # dev-shard-3-tracker-ip
elif [[ $SHARD_INDEX = 4 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://35.221.164.158:8080/json-rpc # dev-shard-4-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://35.221.164.158:8080/json-rpc" # dev-shard-4-tracker-ip
elif [[ $SHARD_INDEX = 5 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://35.234.46.65:8080/json-rpc # dev-shard-5-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://35.234.46.65:8080/json-rpc" # dev-shard-5-tracker-ip
elif [[ $SHARD_INDEX = 6 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://35.221.210.171:8080/json-rpc # dev-shard-6-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://35.221.210.171:8080/json-rpc" # dev-shard-6-tracker-ip
elif [[ $SHARD_INDEX = 7 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://34.80.222.121:8080/json-rpc # dev-shard-7-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://34.80.222.121:8080/json-rpc" # dev-shard-7-tracker-ip
elif [[ $SHARD_INDEX = 8 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://35.221.200.95:8080/json-rpc # dev-shard-8-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://35.221.200.95:8080/json-rpc" # dev-shard-8-tracker-ip
elif [[ $SHARD_INDEX = 9 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://34.80.216.199:8080/json-rpc # dev-shard-9-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://34.80.216.199:8080/json-rpc" # dev-shard-9-tracker-ip
elif [[ $SHARD_INDEX = 10 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://34.80.161.85:8080/json-rpc # dev-shard-10-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://34.80.161.85:8080/json-rpc" # dev-shard-10-tracker-ip
elif [[ $SHARD_INDEX = 11 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://35.194.239.169:8080/json-rpc # dev-shard-11-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://35.194.239.169:8080/json-rpc" # dev-shard-11-tracker-ip
elif [[ $SHARD_INDEX = 12 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://35.185.156.22:8080/json-rpc # dev-shard-12-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://35.185.156.22:8080/json-rpc" # dev-shard-12-tracker-ip
elif [[ $SHARD_INDEX = 13 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://35.229.247.143:8080/json-rpc # dev-shard-13-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://35.229.247.143:8080/json-rpc" # dev-shard-13-tracker-ip
elif [[ $SHARD_INDEX = 14 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://35.229.226.47:8080/json-rpc # dev-shard-14-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://35.229.226.47:8080/json-rpc" # dev-shard-14-tracker-ip
elif [[ $SHARD_INDEX = 15 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://35.234.61.23:8080/json-rpc # dev-shard-15-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://35.234.61.23:8080/json-rpc" # dev-shard-15-tracker-ip
elif [[ $SHARD_INDEX = 16 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://34.80.66.41:8080/json-rpc # dev-shard-16-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://34.80.66.41:8080/json-rpc" # dev-shard-16-tracker-ip
elif [[ $SHARD_INDEX = 17 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://35.229.143.18:8080/json-rpc # dev-shard-17-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://35.229.143.18:8080/json-rpc" # dev-shard-17-tracker-ip
elif [[ $SHARD_INDEX = 18 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://35.234.58.137:8080/json-rpc # dev-shard-18-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://35.234.58.137:8080/json-rpc" # dev-shard-18-tracker-ip
elif [[ $SHARD_INDEX = 19 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://34.80.249.104:8080/json-rpc # dev-shard-19-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://34.80.249.104:8080/json-rpc" # dev-shard-19-tracker-ip
elif [[ $SHARD_INDEX = 20 ]]; then
export TRACKER_UPDATE_JSON_RPC_URL=http://35.201.248.92:8080/json-rpc # dev-shard-20-tracker-ip
export TRACKER_UPDATE_JSON_RPC_URL="http://35.201.248.92:8080/json-rpc" # dev-shard-20-tracker-ip
else
printf "Invalid shard ID argument: $SHARD_INDEX\n"
return 1
Expand Down
Loading

0 comments on commit 8aaa0cc

Please sign in to comment.