Skip to content

Commit

Permalink
Enable swagger in dev and staging.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentwschau committed Mar 28, 2024
1 parent 60b94df commit a95ea71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions protocol/testing/testnet-dev/dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ edit_config() {

# Disable pex
dasel put -t bool -f "$CONFIG_FOLDER"/config.toml '.p2p.pex' -v 'false'

# Enable swagger
dasel put -t bool -f "$CONFIG_FOLDER"/app.toml '.api.swagger' -v 'true'
}

install_prerequisites
Expand Down
3 changes: 3 additions & 0 deletions protocol/testing/testnet-local/local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ edit_config() {
# Default `timeout_commit` is 999ms. For local testnet, use a larger value to make
# block time longer for easier troubleshooting.
dasel put -t string -f "$CONFIG_FOLDER"/config.toml '.consensus.timeout_commit' -v '5s'

# Enable swagger
dasel put -t bool -f "$CONFIG_FOLDER"/app.toml '.api.swagger' -v 'true'
}

install_prerequisites
Expand Down

0 comments on commit a95ea71

Please sign in to comment.