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

Link custom client trusting period ratio #1365

Merged
merged 5 commits into from
Dec 21, 2023

Conversation

TheMarstonConnell
Copy link
Contributor

A follow up to #1357

Currently rly requires clients on both chains to use the same trusting period ratio (85%) or specify a custom trusting period that then applies to both clients. Often you'll see chains like Axelar require connections that use a TP of 2/3 which can't be done using the custom TP flag if the chains have different unbonding times.

This PR adds a new flag client-tp-percentage which is set at a default of 85 but can be changed to any int64 value. This flag overwrites the 85% bonded ratio used by rly. However if a user specifies a custom TP with the client-tp flag, this value is ignored just like before.

Copy link
Contributor

@boojamya boojamya left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, this is great!
Code looks good to me.

Few nits around wording, but that 's it.

cmd/flags.go Outdated Show resolved Hide resolved
cmd/flags.go Outdated Show resolved Hide resolved
relayer/chains/cosmos/provider.go Outdated Show resolved Hide resolved
@TheMarstonConnell
Copy link
Contributor Author

Done and done!

@boojamya boojamya merged commit 56a534c into cosmos:main Dec 21, 2023
18 checks passed
@TheMarstonConnell TheMarstonConnell deleted the marston/percentage-tp branch December 22, 2023 18:23
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