diff --git a/galactica_9301-1/seeds.txt b/galactica_9301-1/seeds.txt new file mode 100644 index 0000000..faa2f4b --- /dev/null +++ b/galactica_9301-1/seeds.txt @@ -0,0 +1,3 @@ +2b590732225bca0f3f55db543861063c705bcd40@seed01-reticulum.galactica.com:26656 +fe758700e25b59b6ba6e2784badcb6024ba1b760@seed02-reticulum.galactica.com:26656 +028d8c875660f0e3fb1d893acd0b2220c619625f@seed03-reticulum.galactica.com:26656 diff --git a/scripts/README.md b/scripts/README.md index a4e744d..73b679b 100644 --- a/scripts/README.md +++ b/scripts/README.md @@ -64,5 +64,10 @@ export KEYRING_BACKEND=file ``` Enter a mnemonic phrase when prompted. The script will import the mnemonic phrase into the keyring. +- **update-seeds.sh**: Update seeds in config.toml + ```bash + ./scripts/update-seeds.sh + ``` + Please refer to the individual scripts for more detailed usage instructions. The script will display the public addresses in different formats and the private key if prompted. diff --git a/scripts/update-seeds.sh b/scripts/update-seeds.sh new file mode 100755 index 0000000..765b02e --- /dev/null +++ b/scripts/update-seeds.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +source ./scripts/gala.sh + +echo -e "Welcome to \e[32mGalactica Network\e[0m seeds update script" +echo -e "This script will update the seeds in config.toml" + +SEEDS=`cat $NETWORK_PATH/seeds.txt | awk '{print $1}' | paste -s -d, -` +sed -i.bak -e "s/^seeds =.*/seeds = \"$SEEDS\"/" $GALACTICA_HOME/config/config.toml + +echo "Seeds successfully updated in $GALACTICA_HOME/config/config.toml config file" +echo "Seeds:" +echo $SEEDS