From cc20cfaf5c3812c5d951f042ef69d9bea554762b Mon Sep 17 00:00:00 2001 From: 0g-wh Date: Mon, 29 Jul 2024 15:50:29 +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