fixed client demo (#325)

* fixed client demo
This commit is contained in:
anatoly yakovenko
2018-06-07 13:51:15 -07:00
committed by GitHub
parent c78132417f
commit 77c9e801aa
3 changed files with 24 additions and 18 deletions

View File

@ -1,11 +1,15 @@
#!/bin/bash -e
if [[ -z "$1" ]]; then
echo "usage: $0 [network path to solana repo on leader machine]"
echo "usage: $0 [network path to solana repo on leader machine] [number of nodes in the network if greater then 1]"
exit 1
fi
LEADER="$1"
COUNT="$2"
if [[ -z "$2" ]]; then
COUNT=1
fi
set -x
export RUST_LOG=solana=info
@ -13,4 +17,4 @@ rsync -v -e ssh "$LEADER/leader.json" .
rsync -v -e ssh "$LEADER/mint-demo.json" .
cargo run --release --bin solana-client-demo -- \
-l leader.json < mint-demo.json 2>&1 | tee client.log
-l leader.json -n $COUNT -d < mint-demo.json 2>&1 | tee client.log