diff --git a/protocol/testing/testnet-dev/dev.sh b/protocol/testing/testnet-dev/dev.sh index 1d2ff614b9..3263b396e1 100755 --- a/protocol/testing/testnet-dev/dev.sh +++ b/protocol/testing/testnet-dev/dev.sh @@ -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 diff --git a/protocol/testing/testnet-local/local.sh b/protocol/testing/testnet-local/local.sh index 856e8eb540..d3fa9cd717 100755 --- a/protocol/testing/testnet-local/local.sh +++ b/protocol/testing/testnet-local/local.sh @@ -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