elesto-dao / elesto

The ElestoDAO node
Apache License 2.0
4 stars 1 forks source link

Genesis migration for Mint module #142

Closed noandrea closed 2 years ago

noandrea commented 2 years ago

WRT the devnet upgrade on Tuesday, it's likely we'll run into this issue:

Stack:
6:12AM ERR CONSENSUS FAILURE!!! err="UnmarshalJSON cannot decode empty bytes" module=consensus stack="goroutine 92 [running]:

github.com/cosmos/cosmos-sdk/x/params/types.Subspace.Get({{0x2555488, 0xc0011714c0}, 0xc00020b068, {0x2537968, 0xc0011e2540}, {0x25379b8, 0xc0011e2600}, {0xc000054798, 0x4, 0x11}, ...}, ...)
github.com/cosmos/cosmos-sdk@v0.45.4/x/params/types/subspace.go:109 
github.com/cosmos/cosmos-sdk/x/params/types.Subspace.GetParamSet({{0x2555488, 0xc0011714c0}, 0xc00020b068, {0x2537968, 0xc0011e2540}, {0x25379b8, 0xc0011e2600}, {0xc000054798, 0x4, 0x11}, ...}, ...)
github.com/cosmos/cosmos-sdk@v0.45.4/x/params/types/subspace.go:222 +0x145
github.com/elesto-dao/elesto/x/mint/keeper.Keeper.GetParams(...)
github.com/elesto-dao/elesto/x/mint/keeper/keeper.go:52
github.com/elesto-dao/elesto/x/mint.BeginBlocker({{0x254a8e8, 0xc000052168}, {0x2556b40, 0xc00495fd40}, {{0xb, 0x0}, {0xc00522908a, 0x6}, 0x1a154, {0x2a900894, ...}, ...}, ...}, ...)
github.com/elesto-dao/elesto/x/mint/abci.go:45 +0x1e5
github.com/elesto-dao/elesto/x/mint.AppModule.BeginBlock(...)
github.com/elesto-dao/elesto/x/mint/module.go:150
(edited)

The issue is that we have no params for the mint module in the store, we will probs need a migration script or restart.