cosmos-sdk: [Bug]: unable to add ConsensusParams into ctx within the same block execution containing migration

Summary of Bug

Manager cannot add ConsensusParams into ctx after calling BeginBlock of UpgradeModule. Since only ctx doesn’t refresh after upgrade module, other modules within for loop can’t not access consensus params.

Version

v0.47.3

Steps to Reproduce

Other module like feemarket get empty consensus params in BeginBlock, a workaround is to call consensusParamsKeeper to get from store but not a longterm solution.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (14 by maintainers)

Most upvoted comments

I guess we should just run migration before everything else, under a minimal context, a special hook just for that, before the BeginBlocker.