-
Notifications
You must be signed in to change notification settings - Fork 586
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
fix: allow zero proof height, solo machine discards provided proof height in favor of sequence #2746
Merged
Merged
fix: allow zero proof height, solo machine discards provided proof height in favor of sequence #2746
Changes from 9 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
29c64f0
refactor(solomachine): discard passed in proof height and remove vali…
colin-axner ed54f58
test: fix solo machine tests
colin-axner 6a896cb
fix(03-connection): remove proof height checks
colin-axner ed1b491
test(solomachine): add tests for connection handshake
colin-axner bbee84b
refactor(solomachine): move testing helper functions to testing package
colin-axner 83a4aab
self review: remove comment
colin-axner 6ce6d58
make format
colin-axner 75e4f51
Merge branch 'main' of github.com:cosmos/ibc-go into colin/1874-sm-pr…
colin-axner abbaeef
chore: add changelog entry
colin-axner 07b9bf4
Merge branch 'main' of github.com:cosmos/ibc-go into colin/1874-sm-pr…
colin-axner 5087d52
chore: add docs for zero proof height logic change
colin-axner 36d83c2
chore: remove empty space
colin-axner b6dc225
chore: solomachine mock channel handshake, allow zero-height in chann…
damiannolan 2becfbf
chore: update changelog entry
colin-axner 0ed02b7
Merge branch 'colin/1874-sm-proof-height' of github.com:cosmos/ibc-go…
colin-axner 7cb3068
Allow zero proof height packet recv ack timeout (#2781)
chatton 9d58aff
Merge branch 'main' into colin/1874-sm-proof-height
colin-axner f4f8def
chore: update changelog entry to improve wording
colin-axner f07f10d
Merge branch 'colin/1874-sm-proof-height' of github.com:cosmos/ibc-go…
colin-axner 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
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
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
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 |
---|---|---|
|
@@ -46,6 +46,18 @@ func TestSoloMachineTestSuite(t *testing.T) { | |
suite.Run(t, new(SoloMachineTestSuite)) | ||
} | ||
|
||
func (suite *SoloMachineTestSuite) TestConnectionHandshake() { | ||
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. These tests couldn't be split out because they actually will fail on main (main is currently broken for solo machines) |
||
clientID := suite.solomachine.CreateClient(suite.chainA) | ||
|
||
connectionID := suite.solomachine.ConnOpenInit(suite.chainA, clientID) | ||
|
||
// open try is not necessary as the solo machine implementation is mock'd | ||
|
||
suite.solomachine.ConnOpenAck(suite.chainA, clientID, connectionID) | ||
|
||
// open confirm is not necessary as the solo machine implementation is mock'd | ||
} | ||
|
||
func (suite *SoloMachineTestSuite) GetSequenceFromStore() uint64 { | ||
bz := suite.store.Get(host.ClientStateKey()) | ||
suite.Require().NotNil(bz) | ||
|
Oops, something went wrong.
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.
when channel handshake tests are added, this func can be renamed to
Setup()
and it can be extended to finish a channel handshakeThere 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 isn't being used anywhere yet, right?
Where do you think we will use it? And should we mock the counterparty(TRY/CONFIRM) handlers too?
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.
Currently it is acting as an integration test for setting up connections. We will use it in integration tests for setting up channels and sending/receiving packets. Currently without the fixes in this pr, main will not pass these tests (solo machine has no integration tests with core IBC and several bugs have historically slipped through because of that)