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

fix: proofs query to help debug app hash #176

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

p0mvn
Copy link
Member

@p0mvn p0mvn commented Apr 6, 2022

This functionality was implemented in #156

I realized that I need a different hash to help with determining which store was faulty upon getting the app hash error. This PR fixes it.

@p0mvn p0mvn marked this pull request as ready for review April 7, 2022 00:14
@p0mvn p0mvn requested a review from alexanderbez as a code owner April 7, 2022 00:14
@p0mvn p0mvn requested a review from ValarDragon April 7, 2022 00:15
@@ -1048,7 +1048,7 @@ func (rs *Store) doProofsQuery(req abci.RequestQuery) abci.ResponseQuery {
}

for _, storeInfo := range commitInfo.StoreInfos {
res.ProofOps.Ops = append(res.ProofOps.Ops, commitInfo.ProofOp(storeInfo.Name))
res.ProofOps.Ops = append(res.ProofOps.Ops, crypto.ProofOp{Key: []byte(storeInfo.Name), Data: storeInfo.CommitId.Hash, })

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this same logic that exists in the SDK?

Copy link
Member Author

@p0mvn p0mvn Apr 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, this was only added here to help debug the app hash problem. Basically, I need a query to see each substore's hash at a specified height.

That should help determine which store committed wrong data.

@alexanderbez alexanderbez merged commit 66442bf into osmosis-main Apr 7, 2022
@alexanderbez alexanderbez deleted the roman/fix-proofs-query branch April 7, 2022 12:32
mergify bot pushed a commit that referenced this pull request Apr 7, 2022
p0mvn added a commit that referenced this pull request Apr 12, 2022
(cherry picked from commit 66442bf)

Co-authored-by: Roman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants