Skip to content

Commit

Permalink
Remove the params store key and transient store key from the app. #2189
Browse files Browse the repository at this point in the history
… (#2190)
  • Loading branch information
SpicyLemon authored Oct 16, 2024
1 parent fa0263a commit e90871c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Remove the params store key and transient store key from the app [PR 2189](https://github.com/provenance-io/provenance/pull/2189).
This fixes a problem in `v1.20.0-rc2` that prevented nodes from restarting if stopped after the upgrade.
8 changes: 3 additions & 5 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,7 @@ var (
// the params module can be deleted. But I don't want the imports, so they're copied here.
// TODO[viridian]: Delete these params constants after the upgrade.
const (
paramsName = "params" // = paramstypes.ModuleName
paramsKey = paramsName // = paramstypes.StoreKey
paramsTKey = "transient_params" // paramstypes.TStoreKey
paramsName = "params" // = paramstypes.ModuleName
)

// WasmWrapper allows us to use namespacing in the config file
Expand Down Expand Up @@ -362,7 +360,7 @@ func New(
keys := storetypes.NewKVStoreKeys(
authtypes.StoreKey, banktypes.StoreKey, stakingtypes.StoreKey,
minttypes.StoreKey, distrtypes.StoreKey, slashingtypes.StoreKey,
govtypes.StoreKey, consensusparamtypes.StoreKey, paramsKey, upgradetypes.StoreKey, feegrant.StoreKey,
govtypes.StoreKey, consensusparamtypes.StoreKey, upgradetypes.StoreKey, feegrant.StoreKey,
evidencetypes.StoreKey, capabilitytypes.StoreKey, circuittypes.StoreKey,
authzkeeper.StoreKey, group.StoreKey, crisistypes.StoreKey,

Expand All @@ -386,7 +384,7 @@ func New(
hold.StoreKey,
exchange.StoreKey,
)
tkeys := storetypes.NewTransientStoreKeys(paramsTKey)
tkeys := storetypes.NewTransientStoreKeys()
memKeys := storetypes.NewMemoryStoreKeys(capabilitytypes.MemStoreKey)

govAuthority := authtypes.NewModuleAddress(govtypes.ModuleName).String()
Expand Down

0 comments on commit e90871c

Please sign in to comment.