From 3ec4f42f6b4f896984b22180785d5d44b7705d31 Mon Sep 17 00:00:00 2001 From: Solovyov1796 Date: Sun, 4 Aug 2024 02:13:40 +0800 Subject: [PATCH] set voting period to 300s for devnet --- .gitignore | 1 - networks/devnet/init-genesis.sh | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 680e304d..c01d1ba0 100644 --- a/.gitignore +++ b/.gitignore @@ -39,7 +39,6 @@ build/darwin build/linux # Ignore deploy outputs -networks/devnet networks/testnet # Go workspace files diff --git a/networks/devnet/init-genesis.sh b/networks/devnet/init-genesis.sh index a18b89f1..760acbe3 100755 --- a/networks/devnet/init-genesis.sh +++ b/networks/devnet/init-genesis.sh @@ -80,6 +80,7 @@ for ((i=0; i<$NUM_NODES; i++)) do cat "$GENESIS" | jq '.app_state["slashing"]["params"]["signed_blocks_window"]="1000"' >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS" cat "$GENESIS" | jq '.app_state["consensus_params"]["block"]["time_iota_ms"]="3000"' >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS" + cat "$GENESIS" | jq '.app_state.gov.voting_params.voting_period = "300s"' >"$TMP_GENESIS" && mv "$TMP_GENESIS" "$GENESIS" # Change app.toml APP_TOML="$HOMEDIR"/config/app.toml