2018-06-18 15:23:56 -07:00
|
|
|
#!/bin/bash
|
2018-05-27 18:19:07 -07:00
|
|
|
|
2018-06-14 17:11:55 -07:00
|
|
|
if [[ -z $1 ]]; then
|
2018-06-22 18:18:09 -07:00
|
|
|
echo "usage: $0 [network path to solana repo on leader machine] <number of nodes in the network>"
|
|
|
|
exit 1
|
2018-05-27 18:19:07 -07:00
|
|
|
fi
|
|
|
|
|
2018-06-14 17:11:55 -07:00
|
|
|
LEADER=$1
|
|
|
|
COUNT=${2:-1}
|
2018-05-27 18:19:07 -07:00
|
|
|
|
2018-06-22 18:18:09 -07:00
|
|
|
rsync -vz "$LEADER"/{leader.json,mint-demo.json} . || exit $?
|
2018-06-14 17:11:55 -07:00
|
|
|
|
|
|
|
# if RUST_LOG is unset, default to info
|
|
|
|
export RUST_LOG=${RUST_LOG:-solana=info}
|
2018-05-27 18:19:07 -07:00
|
|
|
|
2018-06-14 10:35:59 -07:00
|
|
|
cargo run --release --bin solana-client-demo -- \
|
2018-06-14 17:11:55 -07:00
|
|
|
-n "$COUNT" -l leader.json -d < mint-demo.json 2>&1 | tee client.log
|