From 1c465b367b595f6dd47ff7f9e7aa8eac7fe7c37a Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 6 Aug 2020 09:22:48 +0200 Subject: [PATCH 1/3] Sort simapp genesis --- scripts/simapp/generate_template.sh | 14 + .../template/.simapp/config/genesis.json | 860 +++++++++--------- 2 files changed, 444 insertions(+), 430 deletions(-) diff --git a/scripts/simapp/generate_template.sh b/scripts/simapp/generate_template.sh index 4bdba346..30795735 100755 --- a/scripts/simapp/generate_template.sh +++ b/scripts/simapp/generate_template.sh @@ -31,3 +31,17 @@ docker run --rm \ if [ ! -x "$SCRIPT_DIR/template/.simapp/config/gentx" ]; then sudo chown -R "$(id -u):$(id -g)" "$SCRIPT_DIR/template" fi + +function inline_jq() { + IN_OUT_PATH="$1" + shift + TMP_DIR=$(mktemp -d "${TMPDIR:-/tmp}/inline_jq.XXXXXXXXX") + TMP_FILE="$TMP_DIR/$(basename "$IN_OUT_PATH")" + jq "$@" < "$IN_OUT_PATH" > "$TMP_FILE" + if ! mv "$TMP_FILE" "$IN_OUT_PATH" ; then + >&2 echo "Temp file '$TMP_FILE' could not be deleted. If it contains sensitive data, you might want to delete it manually." + exit 3 + fi +} + +inline_jq "$SCRIPT_DIR/template/.simapp/config/genesis.json" -S diff --git a/scripts/simapp/template/.simapp/config/genesis.json b/scripts/simapp/template/.simapp/config/genesis.json index a65cb8d2..592b329f 100644 --- a/scripts/simapp/template/.simapp/config/genesis.json +++ b/scripts/simapp/template/.simapp/config/genesis.json @@ -1,430 +1,7 @@ { - "genesis_time": "2020-08-05T10:19:46.2922652Z", - "chain_id": "simd-testing", - "consensus_params": { - "block": { - "max_bytes": "22020096", - "max_gas": "-1", - "time_iota_ms": "1000" - }, - "evidence": { - "max_age_num_blocks": "100000", - "max_age_duration": "172800000000000" - }, - "validator": { - "pub_key_types": [ - "ed25519" - ] - } - }, "app_hash": "", "app_state": { - "transfer": { - "port_id": "transfer" - }, - "genutil": { - "gentxs": [ - { - "body": { - "messages": [ - { - "@type": "/cosmos.staking.MsgCreateValidator", - "description": { - "moniker": "simd-moniker" - }, - "commission": { - "rate": "0.100000000000000000", - "max_rate": "0.200000000000000000", - "max_change_rate": "0.010000000000000000" - }, - "min_self_delegation": "1", - "delegator_address": "cosmos1320amqmuysc88vuf6unrdprft0kvqdshapg46s", - "validator_address": "cosmosvaloper1320amqmuysc88vuf6unrdprft0kvqdshc4uqkr", - "pubkey": "cosmosvalconspub1zcjduepqeg7s6rcwmnsquupys6a8cd4402drnvzyv84nfakvyzdgzz6qzumqkavfer", - "value": { - "denom": "ustake", - "amount": "250000000" - } - } - ], - "memo": "dc544239a7cbbf5cdde8bbde243fcd9a4195eb70@172.17.0.2:26656" - }, - "auth_info": { - "signer_infos": [ - { - "public_key": { - "secp256k1": "AmT77hhRkycGp9kUxEwOhlHsNl6owW7X7g+nJtrFTlQO" - }, - "mode_info": { - "single": { - "mode": "SIGN_MODE_DIRECT" - } - } - } - ], - "fee": { - "gas_limit": "200000" - } - }, - "signatures": [ - "yqsTm7NZStlzxEUnVQCFxZErdba2r5Slf2/Gf/DTpSNUg+EzhUqWD75c9ynAXPgDz4XSP9ys7PCATegvACkxEQ==" - ] - } - ] - }, - "distribution": { - "params": { - "community_tax": "0.020000000000000000", - "base_proposer_reward": "0.010000000000000000", - "bonus_proposer_reward": "0.040000000000000000", - "withdraw_addr_enabled": true - }, - "fee_pool": { - "community_pool": [] - }, - "delegator_withdraw_infos": [], - "outstanding_rewards": [], - "validator_accumulated_commissions": [], - "validator_historical_rewards": [], - "validator_current_rewards": [], - "delegator_starting_infos": [], - "validator_slash_events": [] - }, - "gov": { - "starting_proposal_id": "1", - "deposits": null, - "votes": null, - "proposals": null, - "deposit_params": { - "min_deposit": [ - { - "denom": "ustake", - "amount": "10000000" - } - ], - "max_deposit_period": "172800000000000" - }, - "voting_params": { - "voting_period": "172800000000000" - }, - "tally_params": { - "quorum": "0.334000000000000000", - "threshold": "0.500000000000000000", - "veto": "0.334000000000000000" - } - }, - "ibc": { - "client_genesis": { - "clients": [], - "clients_consensus": [], - "create_localhost": true - }, - "connection_genesis": { - "connections": [], - "client_connection_paths": [] - }, - "channel_genesis": { - "channels": [], - "acknowledgements": [], - "commitments": [], - "send_sequences": [], - "recv_sequences": [], - "ack_sequences": [] - } - }, - "staking": { - "params": { - "unbonding_time": "1814400000000000", - "max_validators": 100, - "max_entries": 7, - "historical_entries": 100, - "bond_denom": "ustake" - }, - "last_total_power": "0", - "last_validator_powers": null, - "validators": null, - "delegations": null, - "unbonding_delegations": null, - "redelegations": null - }, - "upgrade": {}, - "evidence": {}, - "params": null, - "mint": { - "minter": { - "inflation": "0.130000000000000000", - "annual_provisions": "0.000000000000000000" - }, - "params": { - "mint_denom": "ustake", - "inflation_rate_change": "0.130000000000000000", - "inflation_max": "0.200000000000000000", - "inflation_min": "0.070000000000000000", - "goal_bonded": "0.670000000000000000", - "blocks_per_year": "6311520" - } - }, - "bank": { - "params": { - "default_send_enabled": true - }, - "balances": [ - { - "address": "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos1xy4yqngt0nlkdcenxymg8tenrghmek4nmqm28k", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos1f7j7ryulwjfe9ljplvhtcaxa6wqgula3etktce", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos1vkv9sfwaak76weyamqx0flmng2vuquxqcuqukh", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos10dyr9899g6t0pelew4nvf4j5c3jcgv0r73qga5", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos106jwym4s9aujcmes26myzzwqsccw09sdm0v5au", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos1320amqmuysc88vuf6unrdprft0kvqdshapg46s", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos14qemq0vw6y3gc3u3e0aty2e764u4gs5le3hada", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos142u9fgcjdlycfcez3lw8x6x5h7rfjlnfhpw2lx", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos1hsm76p4ahyhl5yh3ve9ur49r5kemhp2r0dcjvx", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos1hhg2rlu9jscacku2wwckws7932qqqu8x3gfgw0", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos1cjsxept9rkggzxztslae9ndgpdyt2408lk850u", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos1c7wpeen2uv8thayf7g8q2rgpm29clj0dgrdtzw", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos1mjxpv9ft30wer7ma7kwfxhm42l379xutplrdk6", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos17yg9mssjenmc3jkqth6ulcwj9cxujrxxzezwta", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos17d0jcz59jf68g52vq38tuuncmwwjk42u6mcxej", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - }, - { - "address": "cosmos1lvrwcvrqlc5ktzp2c4t22xgkx29q3y83lktgzl", - "coins": [ - { - "denom": "ucosm", - "amount": "1000000000" - }, - { - "denom": "ustake", - "amount": "1000000000" - } - ] - } - ], - "supply": [], - "denom_metadata": null - }, - "crisis": { - "constant_fee": { - "denom": "ustake", - "amount": "1000" - } - }, - "capability": { - "index": "1", - "owners": [] - }, "auth": { - "params": { - "max_memo_characters": "256", - "tx_sig_limit": "7", - "tx_size_cost_per_byte": "10", - "sig_verify_cost_ed25519": "590", - "sig_verify_cost_secp256k1": "1000" - }, "accounts": [ { "type": "cosmos-sdk/BaseAccount", @@ -534,18 +111,441 @@ "address": "cosmos17d0jcz59jf68g52vq38tuuncmwwjk42u6mcxej" } } + ], + "params": { + "max_memo_characters": "256", + "sig_verify_cost_ed25519": "590", + "sig_verify_cost_secp256k1": "1000", + "tx_sig_limit": "7", + "tx_size_cost_per_byte": "10" + } + }, + "bank": { + "balances": [ + { + "address": "cosmos1pkptre7fdkl6gfrzlesjjvhxhlc3r4gmmk8rs6", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos1xy4yqngt0nlkdcenxymg8tenrghmek4nmqm28k", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos1xv9tklw7d82sezh9haa573wufgy59vmwe6xxe5", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos1f7j7ryulwjfe9ljplvhtcaxa6wqgula3etktce", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos1vkv9sfwaak76weyamqx0flmng2vuquxqcuqukh", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos10dyr9899g6t0pelew4nvf4j5c3jcgv0r73qga5", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos106jwym4s9aujcmes26myzzwqsccw09sdm0v5au", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos1320amqmuysc88vuf6unrdprft0kvqdshapg46s", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos14qemq0vw6y3gc3u3e0aty2e764u4gs5le3hada", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos142u9fgcjdlycfcez3lw8x6x5h7rfjlnfhpw2lx", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos1hsm76p4ahyhl5yh3ve9ur49r5kemhp2r0dcjvx", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos1hhg2rlu9jscacku2wwckws7932qqqu8x3gfgw0", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos1cjsxept9rkggzxztslae9ndgpdyt2408lk850u", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos1c7wpeen2uv8thayf7g8q2rgpm29clj0dgrdtzw", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos1mjxpv9ft30wer7ma7kwfxhm42l379xutplrdk6", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos17yg9mssjenmc3jkqth6ulcwj9cxujrxxzezwta", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos17d0jcz59jf68g52vq38tuuncmwwjk42u6mcxej", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + }, + { + "address": "cosmos1lvrwcvrqlc5ktzp2c4t22xgkx29q3y83lktgzl", + "coins": [ + { + "amount": "1000000000", + "denom": "ucosm" + }, + { + "amount": "1000000000", + "denom": "ustake" + } + ] + } + ], + "denom_metadata": null, + "params": { + "default_send_enabled": true + }, + "supply": [] + }, + "capability": { + "index": "1", + "owners": [] + }, + "crisis": { + "constant_fee": { + "amount": "1000", + "denom": "ustake" + } + }, + "distribution": { + "delegator_starting_infos": [], + "delegator_withdraw_infos": [], + "fee_pool": { + "community_pool": [] + }, + "outstanding_rewards": [], + "params": { + "base_proposer_reward": "0.010000000000000000", + "bonus_proposer_reward": "0.040000000000000000", + "community_tax": "0.020000000000000000", + "withdraw_addr_enabled": true + }, + "validator_accumulated_commissions": [], + "validator_current_rewards": [], + "validator_historical_rewards": [], + "validator_slash_events": [] + }, + "evidence": {}, + "genutil": { + "gentxs": [ + { + "auth_info": { + "fee": { + "gas_limit": "200000" + }, + "signer_infos": [ + { + "mode_info": { + "single": { + "mode": "SIGN_MODE_DIRECT" + } + }, + "public_key": { + "secp256k1": "AmT77hhRkycGp9kUxEwOhlHsNl6owW7X7g+nJtrFTlQO" + } + } + ] + }, + "body": { + "memo": "dc544239a7cbbf5cdde8bbde243fcd9a4195eb70@172.17.0.2:26656", + "messages": [ + { + "@type": "/cosmos.staking.MsgCreateValidator", + "commission": { + "max_change_rate": "0.010000000000000000", + "max_rate": "0.200000000000000000", + "rate": "0.100000000000000000" + }, + "delegator_address": "cosmos1320amqmuysc88vuf6unrdprft0kvqdshapg46s", + "description": { + "moniker": "simd-moniker" + }, + "min_self_delegation": "1", + "pubkey": "cosmosvalconspub1zcjduepqeg7s6rcwmnsquupys6a8cd4402drnvzyv84nfakvyzdgzz6qzumqkavfer", + "validator_address": "cosmosvaloper1320amqmuysc88vuf6unrdprft0kvqdshc4uqkr", + "value": { + "amount": "250000000", + "denom": "ustake" + } + } + ] + }, + "signatures": [ + "yqsTm7NZStlzxEUnVQCFxZErdba2r5Slf2/Gf/DTpSNUg+EzhUqWD75c9ynAXPgDz4XSP9ys7PCATegvACkxEQ==" + ] + } ] }, - "slashing": { + "gov": { + "deposit_params": { + "max_deposit_period": "172800000000000", + "min_deposit": [ + { + "amount": "10000000", + "denom": "ustake" + } + ] + }, + "deposits": null, + "proposals": null, + "starting_proposal_id": "1", + "tally_params": { + "quorum": "0.334000000000000000", + "threshold": "0.500000000000000000", + "veto": "0.334000000000000000" + }, + "votes": null, + "voting_params": { + "voting_period": "172800000000000" + } + }, + "ibc": { + "channel_genesis": { + "ack_sequences": [], + "acknowledgements": [], + "channels": [], + "commitments": [], + "recv_sequences": [], + "send_sequences": [] + }, + "client_genesis": { + "clients": [], + "clients_consensus": [], + "create_localhost": true + }, + "connection_genesis": { + "client_connection_paths": [], + "connections": [] + } + }, + "mint": { + "minter": { + "annual_provisions": "0.000000000000000000", + "inflation": "0.130000000000000000" + }, + "params": { + "blocks_per_year": "6311520", + "goal_bonded": "0.670000000000000000", + "inflation_max": "0.200000000000000000", + "inflation_min": "0.070000000000000000", + "inflation_rate_change": "0.130000000000000000", + "mint_denom": "ustake" + } + }, + "params": null, + "slashing": { + "missed_blocks": [], "params": { - "signed_blocks_window": "100", - "min_signed_per_window": "0.500000000000000000", "downtime_jail_duration": "600000000000", + "min_signed_per_window": "0.500000000000000000", + "signed_blocks_window": "100", "slash_fraction_double_sign": "0.050000000000000000", "slash_fraction_downtime": "0.010000000000000000" }, - "signing_infos": [], - "missed_blocks": [] + "signing_infos": [] + }, + "staking": { + "delegations": null, + "last_total_power": "0", + "last_validator_powers": null, + "params": { + "bond_denom": "ustake", + "historical_entries": 100, + "max_entries": 7, + "max_validators": 100, + "unbonding_time": "1814400000000000" + }, + "redelegations": null, + "unbonding_delegations": null, + "validators": null + }, + "transfer": { + "port_id": "transfer" + }, + "upgrade": {} + }, + "chain_id": "simd-testing", + "consensus_params": { + "block": { + "max_bytes": "22020096", + "max_gas": "-1", + "time_iota_ms": "1000" + }, + "evidence": { + "max_age_duration": "172800000000000", + "max_age_num_blocks": "100000" + }, + "validator": { + "pub_key_types": [ + "ed25519" + ] } - } -} \ No newline at end of file + }, + "genesis_time": "2020-08-05T10:19:46.2922652Z" +} From be1dc1ed8d10abff3475a0cf848800a3a393d858 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 6 Aug 2020 09:37:58 +0200 Subject: [PATCH 2/3] Apply custom settings to config.toml --- scripts/simapp/generate_template.sh | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/scripts/simapp/generate_template.sh b/scripts/simapp/generate_template.sh index 30795735..55054707 100755 --- a/scripts/simapp/generate_template.sh +++ b/scripts/simapp/generate_template.sh @@ -44,4 +44,20 @@ function inline_jq() { fi } -inline_jq "$SCRIPT_DIR/template/.simapp/config/genesis.json" -S +( + cd "$SCRIPT_DIR" + + # Sort genesis + inline_jq "template/.simapp/config/genesis.json" -S + + # Custom settings in config.toml + sed -i "" \ + -e 's/^timeout_propose =.*$/timeout_propose = "300ms"/' \ + -e 's/^timeout_propose_delta =.*$/timeout_propose_delta = "100ms"/' \ + -e 's/^timeout_prevote =.*$/timeout_prevote = "300ms"/' \ + -e 's/^timeout_prevote_delta =.*$/timeout_prevote_delta = "100ms"/' \ + -e 's/^timeout_precommit =.*$/timeout_precommit = "300ms"/' \ + -e 's/^timeout_precommit_delta =.*$/timeout_precommit_delta = "100ms"/' \ + -e 's/^timeout_commit =.*$/timeout_commit = "1s"/' \ + "template/.simapp/config/config.toml" +) From 7ec4939194a08bdfbc2e687f9040346388a58e24 Mon Sep 17 00:00:00 2001 From: Simon Warta Date: Thu, 6 Aug 2020 09:41:24 +0200 Subject: [PATCH 3/3] Apply custom settings to app.toml --- scripts/simapp/generate_template.sh | 6 ++++++ scripts/simapp/template/.simapp/config/app.toml | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/simapp/generate_template.sh b/scripts/simapp/generate_template.sh index 55054707..2997bedf 100755 --- a/scripts/simapp/generate_template.sh +++ b/scripts/simapp/generate_template.sh @@ -60,4 +60,10 @@ function inline_jq() { -e 's/^timeout_precommit_delta =.*$/timeout_precommit_delta = "100ms"/' \ -e 's/^timeout_commit =.*$/timeout_commit = "1s"/' \ "template/.simapp/config/config.toml" + + # Custom settings app.toml + sed -i "" \ + -e 's/^enable =.*$/enable = true/' \ + -e 's/^enabled-unsafe-cors =.*$/enabled-unsafe-cors = true/' \ + "template/.simapp/config/app.toml" ) diff --git a/scripts/simapp/template/.simapp/config/app.toml b/scripts/simapp/template/.simapp/config/app.toml index cff06fc3..66618dd4 100644 --- a/scripts/simapp/template/.simapp/config/app.toml +++ b/scripts/simapp/template/.simapp/config/app.toml @@ -78,7 +78,7 @@ global-labels = [ [api] # Enable defines if the API server should be enabled. -enable = false +enable = true # Swagger defines if swagger documentation should automatically be registered. swagger = false @@ -99,4 +99,4 @@ rpc-write-timeout = 0 rpc-max-body-bytes = 1000000 # EnableUnsafeCORS defines if CORS should be enabled (unsafe - use it at your own risk) -enabled-unsafe-cors = false +enabled-unsafe-cors = true