2018-05-23 13:03:19 -07:00
|
|
|
#!/bin/bash
|
2018-06-14 17:11:55 -07:00
|
|
|
|
|
|
|
# if RUST_LOG is unset, default to info
|
|
|
|
export RUST_LOG=${RUST_LOG:-solana=info}
|
|
|
|
|
2018-06-15 14:32:09 -07:00
|
|
|
set -x
|
|
|
|
[[ $(uname) = Linux ]] && sudo sysctl -w net.core.rmem_max=26214400
|
2018-06-18 15:23:56 -07:00
|
|
|
|
2018-06-22 11:37:42 -07:00
|
|
|
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
|
|
|
|
|
|
|
|
cp leader-$IPADDR.json leader.json
|
|
|
|
|
2018-06-18 15:23:56 -07:00
|
|
|
cargo run --release --bin solana-fullnode -- \
|
2018-06-20 14:30:32 -07:00
|
|
|
-l leader.json < genesis.log tx-*.log > tx-"$(date -u +%Y%m%d%k%M%S%N)".log
|