|
|
|
@ -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 |
|
|
|
|