-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
R4R: Add proof verification #3191
Conversation
Can we write a test case for this? |
I added a new commit to enable distrust mode in lcd test. Then the currently lcd test can cover the code for proof verification. |
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 like lcd test is failing and should be fixed (in test_cover)
This is probably failing because of the upstream issue - tendermint/tendermint#2862. |
The test is failing because the validator set is different in some of the tests. Before |
An alternate implementation: #3236 |
…risnet/proof-verification
@mossid how do we fix that issue? |
@mossid |
@HaoyangLiu The tests are dependent on eachother. I did some work trying to parallelize them about a month ago without much luck. |
…risnet/proof-verification
Fix LCD tests dependency
…er-fix Revert "Fix LCD tests dependency"
@HaoyangLiu Is this PR ready to merge? It appears to be still failing tests. |
@jackzampolin |
@HaoyangLiu Thanks for the update! |
OK, I tried to make a downstream PR - https://github.com/HaoyangLiu/cosmos-sdk/pull/15 - but it looks like CI isn't working, so I'm just going to split this into a separate branch. |
Closing in favor of #3449 - but thank you @HaoyangLiu! |
@cwgoes |
The merkle proof can be divided into two category: existence proof and absence proof. They have difference verification methods. Current, the proof verification will use wrong method to verify absence proof if the query key doesn't exist.