Make Docker setup script more robust (for local testing)
This commit is contained in:
@@ -8,11 +8,14 @@ FEE=${FEE_TOKEN:-ucosm}
|
|||||||
wasmd init --chain-id=testing testing
|
wasmd init --chain-id=testing testing
|
||||||
# staking/governance token is hardcoded in config, change this
|
# staking/governance token is hardcoded in config, change this
|
||||||
sed -i "s/\"stake\"/\"$STAKE\"/" "$HOME"/.wasmd/config/genesis.json
|
sed -i "s/\"stake\"/\"$STAKE\"/" "$HOME"/.wasmd/config/genesis.json
|
||||||
(echo "$PASSWORD"; echo "$PASSWORD") | wasmcli keys add validator
|
if ! wasmcli keys show validator; then
|
||||||
|
(echo "$PASSWORD"; echo "$PASSWORD") | wasmcli keys add validator
|
||||||
|
fi
|
||||||
# hardcode the validator account for this instance
|
# hardcode the validator account for this instance
|
||||||
echo "$PASSWORD" | wasmd add-genesis-account validator "1000000000$STAKE,1000000000$FEE"
|
echo "$PASSWORD" | wasmd add-genesis-account validator "1000000000$STAKE,1000000000$FEE"
|
||||||
# (optionally) add a few more genesis accounts
|
# (optionally) add a few more genesis accounts
|
||||||
for addr in "$@"; do
|
for addr in "$@"; do
|
||||||
|
echo $addr
|
||||||
wasmd add-genesis-account "$addr" "1000000000$STAKE,1000000000$FEE"
|
wasmd add-genesis-account "$addr" "1000000000$STAKE,1000000000$FEE"
|
||||||
done
|
done
|
||||||
# submit a genesis validator tx
|
# submit a genesis validator tx
|
||||||
|
|||||||
Reference in New Issue
Block a user