From e90871ce4d60cf7d28afbbdf3745854121b0087f Mon Sep 17 00:00:00 2001 From: Daniel Wedul Date: Wed, 16 Oct 2024 16:11:43 -0600 Subject: [PATCH] Remove the params store key and transient store key from the app. #2189 (#2190) --- .../unreleased/bug-fixes/2189-remove-params-storekey.md | 2 ++ app/app.go | 8 +++----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 .changelog/unreleased/bug-fixes/2189-remove-params-storekey.md diff --git a/.changelog/unreleased/bug-fixes/2189-remove-params-storekey.md b/.changelog/unreleased/bug-fixes/2189-remove-params-storekey.md new file mode 100644 index 000000000..7bbd57cd8 --- /dev/null +++ b/.changelog/unreleased/bug-fixes/2189-remove-params-storekey.md @@ -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. diff --git a/app/app.go b/app/app.go index 38a6fe781..76a628099 100644 --- a/app/app.go +++ b/app/app.go @@ -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 @@ -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, @@ -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()