Skip to content
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

Subspace Query does not return Proof #5241

Closed
4 tasks
AdityaSripal opened this issue Oct 24, 2019 · 9 comments
Closed
4 tasks

Subspace Query does not return Proof #5241

AdityaSripal opened this issue Oct 24, 2019 · 9 comments
Assignees
Labels
C:Store S:blocked Status: Blocked

Comments

@AdityaSripal
Copy link
Member

Summary of Bug

Subspace Query on IAVL store will not return proof even if request.Prove = true.

https://github.com/cosmos/cosmos-sdk/blob/master/store/iavl/store.go#L284

The Subspace query also ignores the height passed into the RequestQuery object, and will simply return the result at the latest height

Version

master: cf8816e

Blocking

Currently blocking #5213 , specifically blocks testing BatchVerify methods in ICS-23


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@AdityaSripal AdityaSripal self-assigned this Oct 24, 2019
@alexanderbez
Copy link
Contributor

I recall this was intentional, no? In either case, what you've mentioned is true.

@AdityaSripal
Copy link
Member Author

I don't recall discussions about it. Either way, to test batchVerifyMembership, I need a batch proof which should be retrievable from the store.Query function

@AdityaSripal
Copy link
Member Author

Blocked on changes to Tendermint and iAVL

@AdityaSripal AdityaSripal reopened this Oct 31, 2019
@AdityaSripal AdityaSripal added the S:blocked Status: Blocked label Oct 31, 2019
@fedekunze
Copy link
Collaborator

@AdityaSripal we need to tackle this issue this week.

@fedekunze fedekunze added this to the IBC Implementation & Integration milestone Dec 2, 2019
@alexanderbez
Copy link
Contributor

Looks like the IAVL library has GetRangeWithProof and GetVersionedRangeWithProof which we can leverage. Supporting the query height should also be trivial (use the later).

@cwgoes
Copy link
Contributor

cwgoes commented Dec 3, 2019

Let's use the ICS 23 format here unless there are any downsides to doing so.

@fedekunze fedekunze modified the milestones: IBC Implementation & Integration, IBC Implementation Dec 10, 2019
@fedekunze
Copy link
Collaborator

Removing this from required issues on IBC 1.0.0 milestone. This can be addressed separately as we still need to implement #5082 for IBC v1.0.0 which doesn't have this problem

@fedekunze fedekunze removed this from the IBC Implementation milestone Dec 19, 2019
@github-actions
Copy link
Contributor

github-actions bot commented Jul 5, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@tac0turtle
Copy link
Member

reopen if this is still applicable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:Store S:blocked Status: Blocked
Projects
None yet
Development

No branches or pull requests

5 participants