Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Track rebase of our work onto cosmos-sdk v0.45.0 #59

Closed
wants to merge 32 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c3f499c
Add minimum commission rate to x/staking (#3)
sunnya97 May 17, 2021
ae7ec17
Fix error msg
ValarDragon Jun 7, 2021
7dd164f
Try fixing simulator setup of commission rate params
ValarDragon Jun 8, 2021
2228736
Turn off gocritic, nolintlint, and staticcheck. this isn't worth the …
ValarDragon Jun 12, 2021
07832f2
min commission rate check on create validator (#11)
antstalepresh Jun 22, 2021
724eaa2
Gate the change to processing of CreateValidatorMsg based on block he…
ValarDragon Aug 3, 2021
be91975
Add inplace decimal operations (#10)
mconcat Jun 22, 2021
1123355
Improve events heap allocations (#27)
ValarDragon Sep 2, 2021
595544d
Deduplicate bech32 encoding
ValarDragon Sep 2, 2021
d5195b4
Add SendManyCoins, SendCoinsFromModuleToManyAccount method to bank Mo…
mattverse Sep 11, 2021
c9f662d
fix bank keeper test
sunnya97 Nov 17, 2021
8573d75
A notable variety of CacheKVStore improvements (#34)
ValarDragon Sep 19, 2021
52af977
debug pubkey-raw
sunnya97 Nov 17, 2021
95315ff
Limit simulation fee token to only sdk.DefaultBondDenom (#42)
sunnya97 Oct 25, 2021
a75fdb1
ran make rosetta-dat
sunnya97 Nov 18, 2021
26abd7f
Add logging to RunMigrations
ValarDragon Dec 7, 2021
8481632
Expose Bank.NewAppModuleBasic
ValarDragon Dec 7, 2021
4cac942
Bank store migration fix for Osmosis
ValarDragon Dec 8, 2021
f421dcb
Cleanup prints during upgrade
ValarDragon Dec 9, 2021
ba9855a
Restore my old cacheKV store fix that got reverted >:(
ValarDragon Dec 9, 2021
282e9bb
Change default gas to 35k (#47)
mattverse Jan 1, 2022
ef80491
add hooks for superfluid (#51)
antstalepresh Jan 11, 2022
b87def6
fix: Change default pruning options (#52)
mattverse Jan 13, 2022
b47e802
Add safety check: restriction fn in bank module for mint perms (#50)
mattverse Jan 13, 2022
9799033
Stop bank migration panic in tests (#55)
ValarDragon Jan 13, 2022
9d5d0c6
feat: add default mint restriction (#57)
mattverse Jan 19, 2022
ee16076
Make rechecking a tx check the sequence number (#58)
ValarDragon Jan 20, 2022
66c9626
reset bankmsg validatebasic for ics20
antstalepresh Oct 13, 2021
c88c9c8
update bank send cli command generator
antstalepresh Oct 13, 2021
0dcf83b
fix liveness tests
mattverse Jan 24, 2022
88ad16d
fix proto checking against
sunnya97 Jan 24, 2022
f432981
Add iavl-cache-size config parsing to GetConfig
channa-figure Jan 20, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add logging to RunMigrations
  • Loading branch information
ValarDragon authored and sunnya97 committed Jan 24, 2022
commit 26abd7f8ce8af6caa4cd7608e4e1e9c42ad1feaf
7 changes: 7 additions & 0 deletions types/module/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,9 @@ func (m Manager) RunMigrations(ctx sdk.Context, cfg Configurator, fromVM Version
if !ok {
return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidType, "expected %T, got %T", configurator{}, cfg)
}

ctx.Logger().Info("Start running migrations")

var modules = m.OrderMigrations
if modules == nil {
modules = DefaultMigrationsOrder(m.ModuleNames())
Expand All @@ -445,6 +448,8 @@ func (m Manager) RunMigrations(ctx sdk.Context, cfg Configurator, fromVM Version
// 2. An existing chain is upgrading to v043 for the first time. In this case,
// all modules have yet to be added to x/upgrade's VersionMap store.
if exists {
ctx.Logger().Info(fmt.Sprintf("Running migration for module: %s, fromVersion %d, toVersion %d",
moduleName, fromVersion, toVersion))
err := c.runModuleMigrations(ctx, moduleName, fromVersion, toVersion)
if err != nil {
return nil, err
Expand All @@ -456,6 +461,8 @@ func (m Manager) RunMigrations(ctx sdk.Context, cfg Configurator, fromVM Version
// is configurator (the struct).
return nil, sdkerrors.Wrapf(sdkerrors.ErrInvalidType, "expected %T, got %T", configurator{}, cfg)
}
ctx.Logger().Info(fmt.Sprintf("Running migration for module: %s, InitGenesis (on default genesis) toVersion %d",
moduleName, toVersion))

moduleValUpdates := module.InitGenesis(ctx, cfgtor.cdc, module.DefaultGenesis(cfgtor.cdc))
// The module manager assumes only one module will update the
Expand Down