prysm-pulse/scripts/run-8-validators.sh
Ivan Martinez c2d4f5b2b8 Create bash scripts for initializing beacon chain and 8 validators (#1996)
* Create scripts for k8s and standard runs

* Add comment

* Create scripts to deploy contract, start beacon chain and validators

* Add placeholders

* Add more docs and remove uneeded tag
2019-03-15 10:42:57 -04:00

25 lines
656 B
Bash
Executable File

#!/bin/sh
DATA_PATH=/tmp/data
PASSWORD_PATH=$DATA_PATH/password.txt
PASSWORD="password"
echo $PASSWORD > $PASSWORD_PATH
bazel build //validator
for i in `seq 1 8`;
do
KEYSTORE=$DATA_PATH/keystore$i
UNAME=$(echo `uname` | tr '[A-Z]' '[a-z]')
CMD="bazel-bin/validator/"
CMD+=$UNAME
CMD+="_amd64_pure_stripped/validator --demo-config --password $PASSWORD_PATH --keystore-path $KEYSTORE"
nohup $CMD $> /tmp/validator$i.log &
done
echo "8 validators are running in the background. You can follow their logs at /tmp/validator#.log where # is replaced by the validator index of 1 through 8."
echo "To stop the processes, use 'pkill validator'"