-
Notifications
You must be signed in to change notification settings - Fork 208
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
Inflation Fix #951
Inflation Fix #951
Conversation
app/upgrades/v16/upgrades.go
Outdated
ratelimitKeeper ratelimitkeeper.Keeper, | ||
) upgradetypes.UpgradeHandler { | ||
return func(ctx sdk.Context, _ upgradetypes.Plan, vm module.VersionMap) (module.VersionMap, error) { | ||
ctx.Logger().Info("Starting upgrade v15...") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sdk "github.com/cosmos/cosmos-sdk/types" | ||
) | ||
|
||
func (k msgServer) ResumeHostZone(goCtx context.Context, msg *types.MsgResumeHostZone) (*types.MsgResumeHostZoneResponse, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We also need to remove the blacklisted denom right?
@@ -26,6 +26,7 @@ func RegisterCodec(cdc *codec.LegacyAmino) { | |||
cdc.RegisterConcrete(&MsgUndelegateHost{}, "stakeibc/UndelegateHost", nil) | |||
cdc.RegisterConcrete(&MsgCalibrateDelegation{}, "stakeibc/CalibrateDelegation", nil) | |||
cdc.RegisterConcrete(&MsgUpdateInnerRedemptionRateBounds{}, "stakeibc/UpdateInnerRedemptionRateBounds", nil) | |||
cdc.RegisterConcrete(&MsgResumeHostZone{}, "stakeibc/ResumeHostZone", nil) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we test this with ledger?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a good point, let's test it in Dockernet
@@ -67,6 +67,9 @@ func NewMessageHandler(k keeper.Keeper) sdk.Handler { | |||
case *types.MsgUpdateInnerRedemptionRateBounds: | |||
res, err := msgServer.UpdateInnerRedemptionRateBounds(sdk.WrapSDKContext(ctx), msg) | |||
return sdk.WrapServiceResult(ctx, res, err) | |||
case *types.MsgResumeHostZone: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we test this on dockernet as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Definitely
Summary
Fixes functionality after invariant checks
Test plan
Dockernet test - main functionality
make start-docker build=s && make test-integration-docker
$STRIDE_MAIN_CMD tx stakeibc set-redemption-rate-bounds GAIA 1 1.000001 --from $STRIDE_ADMIN_ACCT -y | TRIM_TX
$STRIDE_MAIN_CMD tx stakeibc set-redemption-rate-bounds GAIA 1 1.300001 --from $STRIDE_ADMIN_ACCT -y | TRIM_TX
(2)$STRIDE_MAIN_CMD tx stakeibc resume-host-zone GAIA --from $STRIDE_ADMIN_ACCT -y | TRIM_TX
Dockernet test - ledger
ValidateBasic
$STRIDE_MAIN_CMD tx stakeibc resume-host-zone GAIA --from ledger-test -y | TRIM_TX
(error indicates the signing happened correctly, which is what we care about when testing ledger)