Files
solana/multinode-demo/validator.sh
Rob Walker d30670e92e clean up demo bash scripts
* allow other level of RUST logging
 * avoid "echo" in favor of printf (builtin)
 * single quotes for literals, double quotes for variables
2018-06-14 23:12:11 -06:00

21 lines
446 B
Bash
Executable File

#!/bin/bash
if [[ -z $1 ]]; then
printf 'usage: %s [network path to solana repo on leader machine]\n' "$0"
exit 1
fi
LEADER=$1
set -x
rsync -v -e ssh "$LEADER"/{mint-demo.json,leader.json,genesis.log} . || exit $?
sudo sysctl -w net.core.rmem_max=26214400
# if RUST_LOG is unset, default to info
export RUST_LOG=${RUST_LOG:-solana=info}
cargo run --release --bin solana-fullnode -- \
-l validator.json -v leader.json < genesis.log