Skip to content

Commit 2059520

Browse files
authored
Merge pull request #1169 from CosmosContracts/dimi/fix-docker
2 parents a63f2d3 + 94bc3b6 commit 2059520

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docker/setup_junod.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ else
2020
echo "$GENESIS_FILE does not exist. Generating..."
2121

2222
junod init --chain-id "$CHAIN_ID" "$MONIKER"
23-
junod add-ica-config
2423
# staking/governance token is hardcoded in config, change this
25-
sed -i "s/\"stake\"/\"$STAKE\"/" "$GENESIS_FILE"
24+
sed -i "s/\"ujuno\"/\"$STAKE\"/" "$GENESIS_FILE"
2625
# this is essential for sub-1s block times (or header times go crazy)
2726
sed -i 's/"time_iota_ms": "1000"/"time_iota_ms": "10"/' "$GENESIS_FILE"
2827
# change gas limit to mainnet value
@@ -42,6 +41,8 @@ if [ -n "$UNSAFE_CORS" ]; then
4241
# ...and breathe
4342
sed -i "s/enabled-unsafe-cors = false/enabled-unsafe-cors = true/" "$APP_TOML_CONFIG"
4443
sed -i "s/cors_allowed_origins = \[\]/cors_allowed_origins = \[\"\*\"\]/" "$CONFIG_TOML_CONFIG"
44+
else
45+
echo "Unsafe cors not set, skipping changing app.toml"
4546
fi
4647

4748
# speed up block times for testing environments

0 commit comments

Comments
 (0)