reinstatin deploy.sh

pull/580/head
ak 6 years ago
parent 3898733576
commit c8663bbc62
  1. 9
      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
Loading…
Cancel
Save