Skip to content

Commit

Permalink
test: fix unsafe-start-local-validator command (#3375)
Browse files Browse the repository at this point in the history
* clear provider state

Co-authored-by: Dusan Maksimovic <[email protected]>

---------

Co-authored-by: Dusan Maksimovic <[email protected]>
  • Loading branch information
stana-miric and dusan-maksimovic authored Oct 4, 2024
1 parent 5f30e25 commit f3220aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/gaiad/cmd/testnet_set_local_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,10 @@ func updateApplicationState(app *gaia.GaiaApp, args valArgs) error {

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

// PROVIDER
app.ProviderKeeper.DeleteLastProviderConsensusValSet(appCtx)

// GOVERNANCE
shortVotingPeriod := time.Second * 20
expeditedVotingPeriod := time.Second * 10
params, err := app.GovKeeper.Params.Get(appCtx)
Expand Down

0 comments on commit f3220aa

Please sign in to comment.