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

tm v0.37.0-rc2, sdk 0.47.0-rc1, and ibc-go v7 #1068

Merged
merged 13 commits into from
Feb 1, 2023
Merged

Conversation

agouin
Copy link
Member

@agouin agouin commented Jan 11, 2023

Detect tendermint version from nodes for conditional on decoding. When tendermint version is lower than v0.37-alpha, events are base64 encoded and need to be decoded first. Since calls to node Status are already done to get the latest height, and this response includes the tendermint version, we can keep the flag up to date at runtime. This allows a seamless transition for the relayer when a chain upgrades across the tm v0.37 boundary, the relayer will detect the new version and not need a restart.

ibcexported.Header is now ibcexported.ClientMessage

Resolves #737

@agouin agouin marked this pull request as ready for review January 12, 2023 16:51
@agouin
Copy link
Member Author

agouin commented Jan 12, 2023

This is ready for review, but currently using https://github.com/strangelove-ventures/ibc-go/tree/andrew/47-rc1 as a replace ibc-go dependency. This should not be merged until we are pointed to an ibc-go commit on the upstream repo.

EDIT: updated to ibc-go v7 from main on 01/29/2023.

e2e test case for the decoding version boundary here strangelove-ventures/interchaintest#359

@agouin agouin changed the title tm v0.37.0-rc2, sdk 0.47.0-rc1, and ibc-go v6 tm v0.37.0-rc2, sdk 0.47.0-rc1, and ibc-go v7 Jan 29, 2023
@agouin agouin mentioned this pull request Jan 29, 2023
Copy link
Member

@jtieri jtieri left a comment

Choose a reason for hiding this comment

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

Had a few comments but otherwise this looks good!!

relayer/chains/cosmos/event_parser.go Outdated Show resolved Hide resolved
relayer/chains/cosmos/module/app_module.go Show resolved Hide resolved
relayer/chains/cosmos/cosmos_chain_processor.go Outdated Show resolved Hide resolved
relayer/chains/cosmos/query.go Outdated Show resolved Hide resolved
relayer/chains/cosmos/query.go Outdated Show resolved Hide resolved
@agouin agouin force-pushed the andrew/tendermint_v0.37 branch from bd6307a to 7a37b60 Compare February 1, 2023 05:51
Copy link
Member

@jtieri jtieri left a comment

Choose a reason for hiding this comment

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

Ahh blanked on the buf.yaml files last time, good catch! This looks good to go now and this should close #737

@agouin
Copy link
Member Author

agouin commented Feb 1, 2023

Ahh blanked on the buf.yaml files last time, good catch!

Those weren't needed actually until pulling in main with the stride changes that introduced proto-gen. But yes since last review:

  • handled the migration from regen's proto to cosmos' with introduction of buf files and different docker image/mods to protocgen.sh
  • brought in tm v0.37 boundary test so that we have CI around relaying before/after.
  • rename ibctest to interchain

@agouin agouin merged commit a75b26f into main Feb 1, 2023
@agouin agouin deleted the andrew/tendermint_v0.37 branch February 1, 2023 20:10
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.

Refactor to account for upstream changes in ibc-go 02-client refactor
2 participants