-
Notifications
You must be signed in to change notification settings - Fork 609
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
Add flushing check to WriteUpgradeAckChannel #3976
Merged
crodriguezvega
merged 14 commits into
04-channel-upgrades
from
cian/issue#3929-add-flushing-check-to-writeupgradeackchannel
Jun 30, 2023
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f08405c
chore: adding check for in flight packets in WriteUpgradeAckChannel
chatton b59c3eb
Merge branch '04-channel-upgrades' into cian/issue#3929-add-flushing-…
chatton d3783a8
added test for TestWriteUpgradeAckChannel
chatton ac0ab94
Merge branch 'cian/issue#3929-add-flushing-check-to-writeupgradeackch…
chatton 93ff9e6
linter
chatton 3f25db2
add client update to UpgradeAckChannel test
chatton 18cf6e0
Merge branch '04-channel-upgrades' into cian/issue#3929-add-flushing-…
chatton 5b515c0
Merge branch '04-channel-upgrades' into cian/issue#3929-add-flushing-…
chatton e54734c
mv test
charleenfei 173bab7
Merge branch '04-channel-upgrades' into cian/issue#3929-add-flushing-…
charleenfei 8f17107
merge
charleenfei 83ef96e
fix post-merge
charleenfei 59852a5
fix merge issues
charleenfei 55d25bc
review comment
crodriguezvega File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -947,6 +947,23 @@ func (suite *KeeperTestSuite) TestChannelUpgradeAck() { | |
channel := path.EndpointA.GetChannel() | ||
suite.Require().Equal(channeltypes.ACKUPGRADE, channel.State) | ||
suite.Require().Equal(uint64(1), channel.UpgradeSequence) | ||
suite.Require().Equal(channeltypes.FLUSHCOMPLETE, channel.FlushStatus) | ||
}, | ||
}, | ||
{ | ||
"in flight packets", | ||
func() { | ||
charleenfei marked this conversation as resolved.
Show resolved
Hide resolved
|
||
suite.chainA.GetSimApp().IBCKeeper.ChannelKeeper.SetPacketCommitment(suite.chainA.GetContext(), path.EndpointA.ChannelConfig.PortID, path.EndpointA.ChannelID, 1, []byte("commitment")) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. should we use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes we should! nice suggestion |
||
}, | ||
func(res *channeltypes.MsgChannelUpgradeAckResponse, err error) { | ||
suite.Require().NoError(err) | ||
suite.Require().NotNil(res) | ||
suite.Require().Equal(channeltypes.SUCCESS, res.Result) | ||
|
||
channel := path.EndpointA.GetChannel() | ||
suite.Require().Equal(channeltypes.ACKUPGRADE, channel.State) | ||
suite.Require().Equal(uint64(1), channel.UpgradeSequence) | ||
suite.Require().Equal(channeltypes.FLUSHING, channel.FlushStatus) | ||
}, | ||
}, | ||
{ | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 add a unit test similar to that in #3964?