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

backport: Fix invalid minUnbondingTime for verifying inclusion proof (#289) #290

Merged

Conversation

gitferry
Copy link
Member

The bug is caused due to setting params.MinStakingTime to the btcstaking module's keeper method VerifyInclusionProofAndGetHeight other than params.MinUnbondingTime. In the fix, we remove minUnbondingTime from the parameter list of
VerifyInclusionProofAndGetHeight as it should retrieve the parameter within the method.

This PR also added comprehensive tests for
VerifyInclusionProofAndGetHeight

The bug is caused due to setting `params.MinStakingTime` to the
btcstaking module's keeper method `VerifyInclusionProofAndGetHeight`
other than `params.MinUnbondingTime`. In the fix, we remove
`minUnbondingTime` from the parameter list of
`VerifyInclusionProofAndGetHeight` as it should retrieve the parameter
within the method.

This PR also added comprehensive tests for
`VerifyInclusionProofAndGetHeight`
@gitferry gitferry merged commit 8339e55 into release/v0.17.x Nov 22, 2024
18 checks passed
@gitferry gitferry deleted the backport/fix-min-staking-time-for-unbonding branch November 22, 2024 06:19
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