Skip to content

Commit

Permalink
tests: reduce voting period in testnets exports (#3099)
Browse files Browse the repository at this point in the history
  • Loading branch information
MSalopek authored May 16, 2024
1 parent 14e5927 commit 50532e1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/gaiad/cmd/testnet_set_local_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (
"io"
"path/filepath"
"strings"
"time"

dbm "github.com/cometbft/cometbft-db"
"github.com/cosmos/cosmos-sdk/codec/types"
Expand Down Expand Up @@ -247,6 +248,12 @@ func updateApplicationState(app *gaia.GaiaApp, args valArgs) error {

app.SlashingKeeper.SetValidatorSigningInfo(appCtx, newConsAddr, newValidatorSigningInfo)

shortVotingPeriod := time.Second * 20
params := app.GovKeeper.GetParams(appCtx)
params.VotingPeriod = &shortVotingPeriod
app.GovKeeper.SetParams(appCtx, params)
appCtx.Logger().Info("Updated governance voting period", "voting_period", shortVotingPeriod)

// BANK
defaultCoins := sdk.NewCoins(sdk.NewInt64Coin(app.StakingKeeper.BondDenom(appCtx), 1000000000000))

Expand Down

0 comments on commit 50532e1

Please sign in to comment.