Skip to content

Commit

Permalink
set downtime blocks to 10000 in provider
Browse files Browse the repository at this point in the history
  • Loading branch information
dasanchez committed Mar 14, 2024
1 parent d453d27 commit 66da94d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/upgrade-gaia-v15-fresh-state.yml
Original file line number Diff line number Diff line change
Expand Up @@ -656,7 +656,9 @@ jobs:
export CONSUMER_CHAIN_BINARY=$CONSUMER_CHAIN_V310_BINARY
export CONSUMER_HOME_1=/home/runner/.v310-1-1
$CHAIN_BINARY q staking validators -o json --home $HOME_1 | jq '.validators[] | "\(.description.moniker) \(.jailed)"'
echo "Slashing params for provider chain:"
$CHAIN_BINARY q slashing params --home $HOME_1
echo "Slashing params for pre-upgrade consumer chain:"
$CONSUMER_CHAIN_BINARY q slashing params --home $CONSUMER_HOME_1
$CHAIN_BINARY q slashing signing-infos --home $HOME_1
Expand Down
4 changes: 2 additions & 2 deletions scripts/start_chain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ jq -r ".app_state.gov.params.min_deposit[0].amount = \"1\"" ./voting.json > ./go

fi

echo "Setting slashing window to 10..."
jq -r --arg SLASH "10" '.app_state.slashing.params.signed_blocks_window |= $SLASH' ./gov.json > ./slashing.json
echo "Setting slashing window to $DOWNTIME_BLOCKS..."
jq -r --arg SLASH "$DOWNTIME_BLOCKS" '.app_state.slashing.params.signed_blocks_window |= $SLASH' ./gov.json > ./slashing.json
jq -r '.app_state.slashing.params.downtime_jail_duration |= "5s"' slashing.json > slashing-2.json
# mv slashing-2.json $HOME_1/config/genesis.json

Expand Down

0 comments on commit 66da94d

Please sign in to comment.