#!/bin/bash set -eo pipefail function usage { local ME=$(basename $0) cat< $log_folder/beacon.log 2>&1 & sleep 1 #wait or beachchain up fi # Start nodes while IFS='' read -r line || [[ -n "$line" ]]; do IFS=' ' read ip port mode shardID <<< $line #echo $ip $port $mode if [ "$mode" != "client" ]; then if [ -z "$PEER" ]; then ./bin/benchmark -ip $ip -port $port -config_file $config -log_folder $log_folder $DB -min_peers $MIN & else ./bin/benchmark -ip $ip -port $port -log_folder $log_folder $DB $PEER -min_peers $MIN & sleep 1 fi fi done < $config if [ "$TXGEN" == "true" ]; then ./bin/txgen -config_file $config -log_folder $log_folder -duration $DURATION fi # Kill nodes if any ./kill_node.sh