-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
client identifier reuse #358
Merged
Merged
Changes from 3 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
3d28038
add client identifier reuse
colin-axner 66dff3b
Merge branch 'master' of github.com:cosmos/relayer into colin/349-ide…
colin-axner d0cd8c9
go mod tidy
colin-axner 0eee37e
Merge branch 'master' of github.com:cosmos/relayer into colin/349-ide…
colin-axner aa55abc
begin making @AdityaSripal requested changes
colin-axner 841451c
update with matching consensus state
colin-axner 2d95bee
fix bug
colin-axner 94abc33
fix build
colin-axner 8076357
Merge branch 'master' of github.com:cosmos/relayer into colin/349-ide…
colin-axner 1e7cb71
fix bugs, tested and works with upstream fix
colin-axner 62cdfc6
merge master
colin-axner ef448e0
Update relayer/client-tx.go
colin-axner 824888e
Update relayer/client-tx.go
colin-axner 1facc02
go fmt
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
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.
Doing this makes it unlikely that the consensus state actually matches. We don't want to rely on the
ConsensusState
in theCreateClientMsg
message.Why can't we just take the latest consensus state for that client state, we can then just check if that consensus state matches the block at the specified height on chain
c
. If it does, then we can be sure it's a client of the same chain.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.
perfect, exactly the feedback I was hoping for. That makes a lot of sense and should actually make client reuse viable and testing it should become trivial
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.
Ahh it looks like
c
is the chain that you are sending theCreateClientMsg
to. You want to query the header from the other chain, since that is the chain you are creating the client for. Will require a refactor, but still possible.