Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

chore: update to latest ibc-go/v3 #81

Merged
merged 7 commits into from
Jan 17, 2022
Merged

Conversation

damiannolan
Copy link
Member

@damiannolan damiannolan commented Jan 14, 2022

Closes: #79

@@ -23,15 +23,10 @@ make install
# Hermes Relayer
# [Hermes](https://hermes.informal.systems/) is a Rust implementation of a relayer for the [Inter-Blockchain Communication (IBC)](https://ibcprotocol.org/) protocol.
#
# In order to use the hermes relayer you will need to check out a specific branch that can be used with interchain-accounts.
# Currently supported by Hermes v0.9.0
Copy link
Member Author

Choose a reason for hiding this comment

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

Hermes v0.10.0 contains conditional code which attempts to call the now removed endpoint NegotiateAppVersion if available, otherwise it fallbacks to logic to choose version based on a PortPrefix which is now incorrect for controller ports (ics27-owner) as it follows the ics-27-1. prefix.

Using hermes v0.9.0 everything works as expected.

Copy link
Contributor

Choose a reason for hiding this comment

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

Good catch. We need to tell ibc-rs team.

@@ -85,7 +85,8 @@ func (k msgServer) Delegate(goCtx context.Context, msg *types.MsgDelegate) (*typ
Data: data,
}

_, err = k.icaControllerKeeper.TrySendTx(ctx, chanCap, portID, packetData)
timeoutTimestamp := ^uint64(0) >> 1
Copy link
Member Author

Choose a reason for hiding this comment

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

I would rather not use this if there's an alternative. I tried testing with: uint64(ctx.BlockTime().Add(time.Hour).Unix()) but I saw no packets being relayed.

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we can just add a comment in the short term explaining

Copy link
Member Author

Choose a reason for hiding this comment

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

Done 👍

@damiannolan
Copy link
Member Author

I think Ideally we should be cutting an alpha-3 release with the latest changes, or even maybe beta-1 if we can also get cosmos/ibc-go#725 tested and merged.

I would prefer this to point to a release rather than the latest commit off main.

@damiannolan damiannolan marked this pull request as ready for review January 14, 2022 16:09
Copy link
Contributor

@seantking seantking left a comment

Choose a reason for hiding this comment

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

Nice work 🙏

@damiannolan damiannolan merged commit 091eefc into master Jan 17, 2022
@damiannolan damiannolan deleted the damian/update-to-latest branch January 17, 2022 15:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update to ibc-go v3.0.0-alpha2
4 participants