Change multinode script argument to leader path
Some may have cloned their code in different place
This commit is contained in:
parent
9ac7070e08
commit
68955bfcf4
14
README.md
14
README.md
|
@ -66,13 +66,13 @@ Now you can start some validators:
|
|||
```bash
|
||||
$ cat ./multinode-demo/validator.sh
|
||||
#!/bin/bash
|
||||
rsync -v -e ssh $1:~/solana/mint-demo.json .
|
||||
rsync -v -e ssh $1:~/solana/leader.json .
|
||||
rsync -v -e ssh $1:~/solana/genesis.log .
|
||||
rsync -v -e ssh $1/mint-demo.json .
|
||||
rsync -v -e ssh $1/leader.json .
|
||||
rsync -v -e ssh $1/genesis.log .
|
||||
export RUST_LOG=solana=info
|
||||
sudo sysctl -w net.core.rmem_max=26214400
|
||||
cat genesis.log | cargo run --release --bin solana-fullnode -- -l validator.json -s validator.json -v leader.json -b 9000 -d 2>&1 | tee validator-tee.log
|
||||
$ ./multinode-demo/validator.sh ubuntu@10.0.1.51 #The leader machine
|
||||
$ ./multinode-demo/validator.sh ubuntu@10.0.1.51:~/solana #The leader machine
|
||||
```
|
||||
|
||||
|
||||
|
@ -83,10 +83,10 @@ the JSON configuration file here, not the genesis ledger.
|
|||
$ cat ./multinode-demo/client.sh
|
||||
#!/bin/bash
|
||||
export RUST_LOG=solana=info
|
||||
rsync -v -e ssh $1:~/solana/leader.json .
|
||||
rsync -v -e ssh $1:~/solana/mint-demo.json .
|
||||
rsync -v -e ssh $1/leader.json .
|
||||
rsync -v -e ssh $1/mint-demo.json .
|
||||
cat mint-demo.json | cargo run --release --bin solana-client-demo -- -l leader.json -c 8100 -n 1
|
||||
$ ./multinode-demo/client.sh ubuntu@10.0.1.51 #The leader machine
|
||||
$ ./multinode-demo/client.sh ubuntu@10.0.1.51:~/solana #The leader machine
|
||||
```
|
||||
|
||||
Try starting a more validators and reruning the client demo and change the `-n 1` option in `client.sh`!
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
if [[ -z "$1" ]]; then
|
||||
echo "usage: $0 [leader machine]"
|
||||
echo "usage: $0 [network path to solana repo on leader machine]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -9,8 +9,8 @@ LEADER="$1"
|
|||
|
||||
set -x
|
||||
export RUST_LOG=solana=info
|
||||
rsync -v -e ssh "$LEADER:~/solana/leader.json" .
|
||||
rsync -v -e ssh "$LEADER:~/solana/mint-demo.json" .
|
||||
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 -c 8100 -n 1 < mint-demo.json 2>&1 | tee client.log
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash -e
|
||||
|
||||
if [[ -z "$1" ]]; then
|
||||
echo "usage: $0 [leader machine]"
|
||||
echo "usage: $0 [network path to solana repo on leader machine]"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
@ -9,10 +9,10 @@ LEADER="$1"
|
|||
|
||||
set -x
|
||||
|
||||
rsync -v -e ssh "$LEADER:~/solana/mint-demo.json" .
|
||||
rsync -v -e ssh "$LEADER:~/solana/leader.json" .
|
||||
rsync -v -e ssh "$LEADER:~/solana/genesis.log" .
|
||||
rsync -v -e ssh "$LEADER:~/solana/libcuda_verify_ed25519.a" .
|
||||
rsync -v -e ssh "$LEADER/mint-demo.json" .
|
||||
rsync -v -e ssh "$LEADER/leader.json" .
|
||||
rsync -v -e ssh "$LEADER/genesis.log" .
|
||||
rsync -v -e ssh "$LEADER/libcuda_verify_ed25519.a" .
|
||||
|
||||
export RUST_LOG=solana=info
|
||||
|
||||
|
|
Loading…
Reference in New Issue