Merge pull request #47 from 0g-wh/voting-300s

set voting period to 300s for devnet
This commit is contained in:
Solovyov1796 2024-07-29 15:53:51 +08:00 committed by GitHub
commit ea08d540d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 1 deletions

1
.gitignore vendored
View File

@ -39,7 +39,6 @@ build/darwin
build/linux
# Ignore deploy outputs
networks/devnet
networks/testnet
# Go workspace files

View File

@ -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