The core protocol of WoopChain
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
woop/deploy.sh

20 lines
529 B

# Create a tmp folder for logs
t=`date +"%Y%m%d-%H%M%S"`
log_folder="log-$t"
if [ ! -d $log_folder ]
then
mkdir -p $log_folder
fi
./kill_node.sh
config=$1
while IFS='' read -r line || [[ -n "$line" ]]; do
IFS=' ' read ip port mode shardId <<< $line
#echo $ip $port $mode $config
if [ "$mode" != "client" ]; then
go run ./benchmark_main.go -ip $ip -port $port -config_file $config -log_folder $log_folder&
fi
done < $config
go run ./aws-code/transaction_generator.go -config_file $config -log_folder $log_folder