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(sequencer): grpc height hack to fix ibc invalid proof error #1691

Closed
wants to merge 14 commits into from

Conversation

noot
Copy link
Collaborator

@noot noot commented Oct 18, 2024

Summary

patch penumbra temporarily so that height is passed from hermes's requests to the ibc grpc server.

Background

there was an IBC proof validation failure error on dusk-10. the computed app hash was one height after the expected app hash, which could be caused by the grpc queries always using the latest state snapshot, instead of at the height intended by hermes. however the grpc requests don't contain the height so the hack is to put the height in the grpc request metadata, which is then used by the grpc query server to use the correct snapshot.

this should probably be upstreamed into penumbra as this is actually the recommended solution by the ibc-go team (cosmos/ibc-go#7303)

Changes

Testing

ibc smoke test

@SuperFluffy
Copy link
Member

Please create the fork under the astriaorg organization and point this patch to https://github.com/astriaorg/penumbra

@noot
Copy link
Collaborator Author

noot commented Oct 21, 2024

@SuperFluffy done

@noot
Copy link
Collaborator Author

noot commented Dec 6, 2024

closing in favour of #1856

@noot noot closed this Dec 6, 2024
github-merge-queue bot pushed a commit that referenced this pull request Dec 9, 2024
## Summary
bump penumbra dep to commit with ibc height fix as it was merged
upstream:
penumbra-zone/penumbra@ac7abac

## Background
see #1691

## Changes
- bump penumbra dep to commit with ibc height fix 

## Testing
it has been tested on the current live networks already
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.

4 participants