remove IPADDR, which was making Rob feel ill
IPADDR is simple, but not exactly what we need for testnet, where NAT'd folks need to join in, need to advertize themselves as on the interweb. myip() helps, but there's some TODOs: fullnode-config probably needs to be told where it lives in the real world (machine interfaces tell us dick), or incorporate something like the "ifconfig.co" code in myip.sh
This commit is contained in:
@ -1,11 +1,13 @@
|
||||
#!/bin/bash
|
||||
here=$(dirname $0)
|
||||
. "${here}"/myip.sh
|
||||
|
||||
TOKENS=${1:-1000000000}
|
||||
myip=$(myip) || exit $?
|
||||
|
||||
cargo run --release --bin solana-mint-demo <<<"${TOKENS}" > mint-demo.json
|
||||
num_tokens=${1:-1000000000}
|
||||
|
||||
cargo run --release --bin solana-mint-demo <<<"${num_tokens}" > mint-demo.json
|
||||
cargo run --release --bin solana-genesis-demo < mint-demo.json > genesis.log
|
||||
|
||||
IPADDR="$(ifconfig | awk '/inet (addr)?/ {print $2}' | cut -d: -f2 | grep -v '127.0.0.1')"
|
||||
|
||||
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-"${myip}".json
|
||||
cargo run --release --bin solana-fullnode-config -- -b 9000 -d > validator-"${myip}".json
|
||||
|
Reference in New Issue
Block a user