solana/multinode-demo/validator.sh
Rob Walker 4ecd2c9d0b update demo scripts
* add setup to combine init steps, configurable initial mint
  * bash -e -> bash and be explicit about errors with || exit $?
  * feed transaction logs to validator, too
2018-06-19 17:04:44 -07:00

21 lines
483 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 "$LEADER"/{mint-demo.json,leader.json,genesis.log,tx-*.log} . || exit $?
[[ $(uname) = Linux ]] && 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 tx-*.log