2022-04-29 12:53:48 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# need netcat
|
|
|
|
|
|
|
|
# Wait for node to start
|
|
|
|
while ! netcat -z localhost 4001; do
|
|
|
|
sleep 1
|
|
|
|
done
|
|
|
|
|
|
|
|
while ! wget http://localhost:4001/genesis -O genesis.json ; do
|
|
|
|
sleep 15
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ ! -f genesis.json ]; then
|
|
|
|
echo "Failed to create genesis file!"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
sleep 2
|
|
|
|
|
2022-11-28 06:12:10 -08:00
|
|
|
pipenv run python3 admin.py --devnet --boot --fundDevAccounts
|
|
|
|
|