Skip to content

Commit

Permalink
don't rename appmodule
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Sep 2, 2024
1 parent 2636680 commit 282ab5d
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 31 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Every module contains its own CHANGELOG.md. Please refer to the module you are i

### API Breaking Changes

* [#21497](https://github.com/cosmos/cosmos-sdk/pull/21497) Rename `x/consensus` to `x/comet`. Only the module/package name has changed, endpoints, proto package, and other references remain the same.
* [#21497](https://github.com/cosmos/cosmos-sdk/pull/21497) Rename `x/consensus` to `x/comet`. Only the go module name has changed, appmodule, endpoints, proto package, and other references remain the same.

### Deprecated

Expand Down
21 changes: 1 addition & 20 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -443,26 +443,7 @@ if err != nil {
The `x/consensus` module has been renamed to `x/comet`. More consensus engines are supported in the Cosmos SDK for server/v2.
The renaming was done to signify that.

For backward compatibility the store key has been kept as `consensus`, a genesis migration have been added as well.

Due to add add the following in your `app_config.go` / `app.yaml` when using `runtime`:

```diff
OverrideStoreKeys: []*runtimev2.StoreKeyConfig{
{
ModuleName: authtypes.ModuleName,
KvStoreKey: "acc",
},
{
ModuleName: accounts.ModuleName,
KvStoreKey: accounts.StoreKey,
},
+ {
+ ModuleName: comettypes.ModuleName,
+ KvStoreKey: comettypes.StoreKey,
+ },
},
```
For backward compatibility the module name and its store key has been kept as `consensus`.

### `x/crsis`

Expand Down
4 changes: 0 additions & 4 deletions simapp/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,6 @@ var (
ModuleName: accounts.ModuleName,
KvStoreKey: accounts.StoreKey,
},
{
ModuleName: comettypes.ModuleName,
KvStoreKey: comettypes.StoreKey,
},
},
// NOTE: The genutils module must occur after staking so that pools are
// properly initialized with tokens from genesis accounts.
Expand Down
4 changes: 0 additions & 4 deletions simapp/v2/app_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ var (
ModuleName: accounts.ModuleName,
KvStoreKey: accounts.StoreKey,
},
{
ModuleName: comettypes.ModuleName,
KvStoreKey: comettypes.StoreKey,
},
},
// NOTE: The genutils module must occur after staking so that pools are
// properly initialized with tokens from genesis accounts.
Expand Down
4 changes: 2 additions & 2 deletions x/comet/types/keys.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package types

const (
// ModuleName defines the name of the x/comet module.
ModuleName = "comet"
ModuleName = "consensus" // The module name is still `consensus` here to keep the same module address.

// StoreKey defines the module's store key.
StoreKey = "consensus"
StoreKey = ModuleName
)

0 comments on commit 282ab5d

Please sign in to comment.