Address review comments

This commit is contained in:
Pankaj Garg 2018-06-22 14:10:50 -07:00 committed by Greg Fitzgerald
parent 9209f9acde
commit 0253d34467
3 changed files with 7 additions and 19 deletions

View File

@ -6,13 +6,9 @@ export RUST_LOG=${RUST_LOG:-solana=info}
set -x
[[ $(uname) = Linux ]] && sudo sysctl -w net.core.rmem_max=26214400
IPADDR="$(ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}')"
IPADDR="$(ifconfig | awk '/inet (addr)?/ {print $2}' | cut -d: -f2 | grep -v '127.0.0.1')"
if [ -z "$IPADDR" ]; then
IPADDR="$(ifconfig | grep 'inet '| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $2}')"
fi
cp leader-$IPADDR.json leader.json
cp leader-"$IPADDR".json leader.json
cargo run --release --bin solana-fullnode -- \
-l leader.json < genesis.log tx-*.log > tx-"$(date -u +%Y%m%d%k%M%S%N)".log

View File

@ -5,11 +5,7 @@ TOKENS=${1:-1000000000}
cargo run --release --bin solana-mint-demo <<<"${TOKENS}" > mint-demo.json
cargo run --release --bin solana-genesis-demo < mint-demo.json > genesis.log
IPADDR="$(ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}')"
IPADDR="$(ifconfig | awk '/inet (addr)?/ {print $2}' | cut -d: -f2 | grep -v '127.0.0.1')"
if [ -z "$IPADDR" ]; then
IPADDR="$(ifconfig | grep 'inet '| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $2}')"
fi
cargo run --release --bin solana-fullnode-config -- -d > leader-$IPADDR.json
cargo run --release --bin solana-fullnode-config -- -b 9000 -d > validator-$IPADDR.json
cargo run --release --bin solana-fullnode-config -- -d > leader-"$IPADDR".json
cargo run --release --bin solana-fullnode-config -- -b 9000 -d > validator-"$IPADDR".json

View File

@ -16,11 +16,7 @@ rsync -v "$LEADER"/{mint-demo.json,leader.json,genesis.log,tx-*.log} . || exit $
# if RUST_LOG is unset, default to info
export RUST_LOG=${RUST_LOG:-solana=info}
IPADDR="$(ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}')"
if [ -z "$IPADDR" ]; then
IPADDR="$(ifconfig | grep 'inet '| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $2}')"
fi
IPADDR="$(ifconfig | awk '/inet (addr)?/ {print $2}' | cut -d: -f2 | grep -v '127.0.0.1')"
cargo run --release --bin solana-fullnode -- \
-l validator-$IPADDR.json -v leader.json < genesis.log tx-*.log
-l validator-"$IPADDR".json -v leader.json < genesis.log tx-*.log