From 0a0bf23969271f97ec5f443b8e711ce7a17248c6 Mon Sep 17 00:00:00 2001 From: thr2240 Date: Fri, 6 Oct 2023 15:42:03 +0800 Subject: [PATCH] updated seed script --- seed_node.sh | 41 ++++++++++++++++++----------------------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/seed_node.sh b/seed_node.sh index f7e6e4c..1a3acdb 100755 --- a/seed_node.sh +++ b/seed_node.sh @@ -29,7 +29,7 @@ validate_email() { } # Prompt the user for input -read -p "Enter amount (e.g., 1000000uollo): " amount +read -p "Enter amount (e.g., 1000000000000uollo(must be greater than min self delegation)): " amount read -p "Enter commission rate (e.g., 0.10): " commission_rate read -p "Enter commission max rate (e.g., 0.20): " commission_max_rate read -p "Enter commission max change rate (e.g., 0.05): " commission_max_change_rate @@ -66,10 +66,9 @@ make install # Set moniker and chain-id for chain (Moniker can be anything, chain-id must be same mainnode) rm -rf $HOME/.ollo -ollod init $MONIKER --chain-id=$CHAINID -overwrite +ollod init $MONIKER --chain-id=$CHAINID --overwrite # Fetch genesis.json from genesis node -rm -rf $HOME/.ollo/config/genesis.json curl $MAINNODE_RPC/genesis? | jq ".result.genesis" > $HOME/.ollo/config/genesis.json ollod validate-genesis @@ -106,7 +105,7 @@ sed -i 's/enabled-unsafe-cors = false/enabled-unsafe-cors = true/g' "$APPCONFIG sed -i 's/api = "eth,net,web3"/api = "eth,txpool,personal,net,debug,web3"/g' "$APPCONFIG" # add account for validator in the node -ollod keys add $VALIDATOR --keyring-backend $KEYRING +ollod keys add $VALIDATOR --recover sudo tee /etc/systemd/system/ollo.service > /dev/null <