-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
ConsensusState is retrieved by light clients in verifyXYZ as necessary #7005
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7005 +/- ##
==========================================
+ Coverage 61.90% 62.10% +0.20%
==========================================
Files 520 521 +1
Lines 32151 32123 -28
==========================================
+ Hits 19902 19949 +47
+ Misses 10632 10540 -92
- Partials 1617 1634 +17 |
…-remove-constate-from-verifyxyz
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.
looks good! minor comments
@@ -144,6 +144,15 @@ func (cs ClientState) VerifyClientConsensusState( | |||
return err | |||
} | |||
|
|||
if consensusState == 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.
isn't this checked on sanitizeVerificationArgs
?
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.
I took it out of sanitizeVerificationArgs
since the consensusState is now being retrieved and decoded from the store
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.
LGTM, some minor requests
) error { | ||
merkleProof, err := sanitizeVerificationArgs(cdc, cs, height, prefix, proof, consensusState) | ||
merkleProof, consensusState, err := sanitizeVerificationArgs(store, cdc, cs, height, prefix, proof) |
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.
Maybe sanitizeVerificationArgs
is a misnomer given its returning the consensus state as well.
Maybe produceVerificationArgs
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.
utACK, agree with prior comments
Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Aditya <adityasripal@gmail.com>
…-remove-constate-from-verifyxyz
…m:cosmos/cosmos-sdk into colin/6281-remove-constate-from-verifyxyz
Description
Moves retrieval of consensus state to verifyXYZ functions. Refactored most of the tests in tm's
client_state_test.go
to use ibc testing packagecloses: #6281
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes