2018-05-27 18:19:07 -07:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
|
|
|
if [[ -z "$1" ]]; then
|
2018-05-30 12:02:13 -07:00
|
|
|
echo "usage: $0 [network path to solana repo on leader machine]"
|
2018-05-27 18:19:07 -07:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
LEADER="$1"
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
2018-05-30 12:02:13 -07:00
|
|
|
rsync -v -e ssh "$LEADER/mint-demo.json" .
|
|
|
|
rsync -v -e ssh "$LEADER/leader.json" .
|
|
|
|
rsync -v -e ssh "$LEADER/genesis.log" .
|
2018-05-27 18:19:07 -07:00
|
|
|
|
2018-05-23 21:45:40 -07:00
|
|
|
export RUST_LOG=solana=info
|
2018-05-27 18:19:07 -07:00
|
|
|
|
2018-05-24 23:18:41 -07:00
|
|
|
sudo sysctl -w net.core.rmem_max=26214400
|
2018-05-27 18:19:07 -07:00
|
|
|
|
2018-06-01 12:13:20 -07:00
|
|
|
cargo run --release --features=cuda --bin solana-fullnode -- \
|
|
|
|
-l validator.json -v leader.json -b 9000 -d < genesis.log
|