Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions docker/setup_junod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ else
echo "$GENESIS_FILE does not exist. Generating..."

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

# speed up block times for testing environments
Expand Down
Loading