Skip to content

Commit

Permalink
revert changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tac0turtle committed Jul 8, 2021
1 parent 3e54542 commit 2d63a91
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 71 deletions.
7 changes: 0 additions & 7 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -427,13 +427,6 @@ func (app *BaseApp) GetConsensusParams(ctx sdk.Context) *abci.ConsensusParams {
cp.Validator = &vp
}

if app.paramStore.Has(ctx, ParamStoreKeyVersionParams) {
var vp tmproto.VersionParams

app.paramStore.Get(ctx, ParamStoreKeyVersionParams, &vp)
cp.Version = &vp
}

return cp
}

Expand Down
12 changes: 0 additions & 12 deletions baseapp/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ var (
ParamStoreKeyBlockParams = []byte("BlockParams")
ParamStoreKeyEvidenceParams = []byte("EvidenceParams")
ParamStoreKeyValidatorParams = []byte("ValidatorParams")
ParamStoreKeyVersionParams = []byte("VersionParams")
)

// ParamStore defines the interface the parameter store used by the BaseApp must
Expand Down Expand Up @@ -85,14 +84,3 @@ func ValidateValidatorParams(i interface{}) error {

return nil
}

// ValidateVersionParams defines a stateless validation on VersionParams. This
// function is called whenever the parameters are updated or stored.
func ValidateVersionParams(i interface{}) error {
_, ok := i.(tmproto.VersionParams)
if !ok {
return fmt.Errorf("invalid parameter type: %T", i)
}

return nil
}
23 changes: 0 additions & 23 deletions x/params/keeper/migrations.go

This file was deleted.

26 changes: 0 additions & 26 deletions x/params/legacy/v044/store.go

This file was deleted.

3 changes: 0 additions & 3 deletions x/params/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,6 @@ func (am AppModule) LegacyQuerierHandler(legacyQuerierCdc *codec.LegacyAmino) sd
func (am AppModule) RegisterServices(cfg module.Configurator) {
proposal.RegisterQueryServer(cfg.QueryServer(), am.keeper)

m := keeper.NewMigrator(am.keeper)
cfg.RegisterMigration(types.ModuleName, 2, m.Migrate1to2)

}

// ProposalContents returns all the params content functions used to
Expand Down

0 comments on commit 2d63a91

Please sign in to comment.