Bash scripts to go with simple-client-demo
This commit is contained in:
parent
ac40434cdf
commit
124e1fa350
|
@ -35,6 +35,7 @@ else
|
|||
fi
|
||||
|
||||
solana_client_demo=$(solana_program client-demo)
|
||||
solana_simple_client_demo=$(solana_program simple-client-demo)
|
||||
solana_drone=$(solana_program drone)
|
||||
solana_fullnode=$(solana_program fullnode)
|
||||
solana_fullnode_config=$(solana_program fullnode-config)
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# usage: $0 <rsync network path to solana repo on leader machine> <number of nodes in the network???>"
|
||||
#
|
||||
|
||||
here=$(dirname "$0")
|
||||
source "$here"/common.sh
|
||||
SOLANA_CONFIG_DIR=config-client-demo
|
||||
|
||||
leader=${1:-${here}/..} # Default to local solana repo
|
||||
count=${2:-1}
|
||||
|
||||
rsync_leader_url=$(rsync_url "$leader")
|
||||
|
||||
set -ex
|
||||
mkdir -p $SOLANA_CONFIG_DIR
|
||||
rsync -vPz "$rsync_leader_url"/config/leader.json $SOLANA_CONFIG_DIR/
|
||||
|
||||
exec $solana_simple_client_demo \
|
||||
-l $SOLANA_CONFIG_DIR/leader.json -d
|
Loading…
Reference in New Issue