mirror of
https://github.com/logos-storage/logos-storage-DAppNodePackage.git
synced 2026-01-02 13:23:10 +00:00
* chore: spelling * chore: update testnet geth enodes records * chore: set testnet codex spr records from url * chore: publish updated packges
27 lines
1.0 KiB
Bash
27 lines
1.0 KiB
Bash
#!/bin/sh
|
|
|
|
# Network
|
|
if [ "${NETWORK}" = "testnet" ]; then
|
|
export GETH_BOOTNODES=enode://cff0c44c62ecd6e00d72131f336bb4e4968f2c1c1abeca7d4be2d35f818608b6d8688b6b65a18f1d57796eaca32fd9d08f15908a88afe18c1748997235ea6fe7@159.223.243.50:40010,enode://4a7303b8a72db91c7c80c8fb69df0ffb06370d7f5fe951bcdc19107a686ba61432dc5397d073571433e8fc1f8295127cabbcbfd9d8464b242b7ad0dcd35e67fc@174.138.127.95:40020,enode://ea331eaa8c5150a45b793b3d7c17db138b09f7c9dd7d881a1e2e17a053e0d2600e0a8419899188a87e6b91928d14267949a7e6ec18bfe972f3a14c5c2fe9aecb@68.183.245.13:40030
|
|
fi
|
|
|
|
# Show
|
|
echo "Geth parameters:"
|
|
vars=$(env | grep GETH_)
|
|
echo -e "${vars//GETH_/ - GETH_}"
|
|
echo -e " $@"
|
|
|
|
# Genesis
|
|
echo "Create Genesis block"
|
|
if [ -d "${GETH_DATADIR}/geth/chaindata" ]; then
|
|
echo "Genesis block was already created"
|
|
else
|
|
echo "Creating Genesis block"
|
|
echo "geth init --datadir ${GETH_DATADIR} ${GENESIS_DIR}${GENESIS_PREFIX}-${NETWORK}.json"
|
|
geth init --datadir "${GETH_DATADIR}" "${GENESIS_DIR}${GENESIS_PREFIX}-${NETWORK}.json"
|
|
fi
|
|
|
|
# Run
|
|
echo "Run Geth node..."
|
|
geth
|