-
Notifications
You must be signed in to change notification settings - Fork 61
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
backport: gov reopen/close to v1.2.5
#349
Conversation
@@ -588,14 +589,17 @@ func (s *KeeperTestSuite) TestHandleRewardsCallbackEmptyResponse() { | |||
|
|||
respbz, err := app.AppCodec().Marshal(&response) | |||
s.Require().NoError(err) | |||
|
|||
epoch := app.EpochsKeeper.GetEpochInfo(ctx, "epoch") | |||
fmt.Println(epoch) |
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.
Debug
x/interchainstaking/keeper/keeper.go
Outdated
@@ -634,3 +639,7 @@ func DetermineAllocationsForRebalancing(currentAllocations map[string]math.Int, | |||
|
|||
return out | |||
} | |||
|
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.
If we are adding setEpochsKeeper, do we need to remove epochkeeper from NewKeeper (I added in v1.2.5)
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.
Yeah we should remove. We need to use setEpochsKeeper
to ensure the order of keeper init is valid
func (k msgServer) GovReopenChannel(goCtx context.Context, msg *types.MsgGovReopenChannel) (*types.MsgGovReopenChannelResponse, error) { | ||
ctx := sdk.UnwrapSDKContext(goCtx) | ||
|
||
// checking msg authority is the gov module address |
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.
This is no longer a proposal, so can remove these commented lines
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.
A couple of comments - can you also add the cli tx command for reopen
1. Summary
Fixes QCK-174
Backport
GovReopenChannel
andGovCloseChannel
Add
InterchainStakingKeeper.SetEpochsKeeper()
to prevent a panicNote: we should add test for the
msg_server
functionality in the future.