solana/multinode-demo/client.sh

21 lines
470 B
Bash
Raw Normal View History

2018-05-27 18:19:07 -07:00
#!/bin/bash -e
if [[ -z "$1" ]]; then
echo "usage: $0 [network path to solana repo on leader machine] [number of nodes in the network if greater then 1]"
2018-05-27 18:19:07 -07:00
exit 1
fi
LEADER="$1"
COUNT="$2"
if [[ -z "$2" ]]; then
COUNT=1
fi
2018-05-27 18:19:07 -07:00
set -x
export RUST_LOG=solana=info
rsync -v -e ssh "$LEADER/leader.json" .
rsync -v -e ssh "$LEADER/mint-demo.json" .
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-08 10:09:45 -07:00
-n $COUNT -l leader.json -d < mint-demo.json 2>&1 | tee client.log