From c8663bbc62202d11052d10019672d9caeb158fd1 Mon Sep 17 00:00:00 2001 From: ak Date: Sat, 16 Mar 2019 11:06:23 -0700 Subject: [PATCH] reinstatin deploy.sh --- test/deploy.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/test/deploy.sh b/test/deploy.sh index bce02e333..a93102d9f 100755 --- a/test/deploy.sh +++ b/test/deploy.sh @@ -81,7 +81,7 @@ DRYRUN= while getopts "hdtD:m:s:k:nS" option; do case $option in h) usage ;; - d) DB='-fresh_db' ;; + d) DB='-db_supported' ;; t) TXGEN=false ;; D) DURATION=$OPTARG ;; m) MIN=$OPTARG ;; @@ -149,6 +149,11 @@ while IFS='' read -r line || [[ -n "$line" ]]; do $DRYRUN $ROOT/bin/harmony -ip $ip -port $port -log_folder $log_folder $DB -min_peers $MIN $HMY_OPT2 $HMY_OPT3 -key /tmp/$ip-$port.key 2>&1 | tee -a $LOG_FILE & fi sleep 0.5 + if [[ "$mode" == "newnode" && "$SYNC" == "true" ]]; then + (( NUM_NN += 10 )) + echo "launching new node ..." + (sleep $NUM_NN; $DRYRUN $ROOT/bin/harmony -ip $ip -port $port -log_folder $log_folder $DB -min_peers $MIN $HMY_OPT2 $HMY_OPT3 -key /tmp/$ip-$port.key 2>&1 | tee -a $LOG_FILE ) & + fi done < $config # Emulate node offline @@ -172,4 +177,4 @@ fi [ -e bc_config.json ] && cp -f bc_config.json $log_folder cleanup -check_result +check_result \ No newline at end of file