Use calculated staked amount while creating subsequent validators

This commit is contained in:
Shreerang Kale 2025-05-15 19:14:24 +05:30
parent 619cd4bb74
commit 0b0030aa7e

View File

@ -3,9 +3,20 @@ set -e
DENOM=alnt 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 # Create validator with fixed parameters
laconicd tx staking create-validator \ laconicd tx staking create-validator \
--amount 900000000$DENOM \ --amount $stake_amount$DENOM \
--pubkey $(laconicd tendermint show-validator) \ --pubkey $(laconicd tendermint show-validator) \
--moniker "$CERC_MONIKER" \ --moniker "$CERC_MONIKER" \
--chain-id "$CERC_CHAIN_ID" \ --chain-id "$CERC_CHAIN_ID" \