Use calculated staked amount while creating subsequent validators

This commit is contained in:
Shreerang Kale
2025-05-16 11:12:36 +05:30
parent 67900cb382
commit 1d5901a401
+12 -1
View File
@@ -3,9 +3,20 @@ set -e
DENOM=alnt
NODE_HOME=/root/.laconicd
staking_amount_file="$NODE_HOME/tmp/staking-amount.json"
if [ ! -f "$staking_amount_file" ]; then
echo "staking-amount.json file not provided, exiting..."
exit 1
fi
# Set staking amount
stake_amount=$(jq -r '.amount' "$staking_amount_file")
# Create validator with fixed parameters
laconicd tx staking create-validator \
--amount 900000000$DENOM \
--amount $stake_amount$DENOM \
--pubkey $(laconicd tendermint show-validator) \
--moniker "$CERC_MONIKER" \
--chain-id "$CERC_CHAIN_ID" \