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 StopConsumerChain not running in cachedContext #802

Merged
merged 3 commits into from
Mar 24, 2023

Conversation

MSalopek
Copy link
Contributor

Description

This PR resolves a bug in StopConsumerChain.

A bug was identified in ICS provider code where the StopConsumerChain is not actually called in a cachedContext. Instead, it is run in the global app context.

This meant that the consumer chain can get removed unexpectedly and its CCV chanel was closed as soon as the proposal tx gets handled.

This bug is resolved i

Linked issues

Closes: #799

Type of change

If you've checked more than one of the first three boxes, consider splitting this PR into multiple PRs!

  • Feature: Changes and/or adds code behavior, irrelevant to bug fixes
  • Fix: Changes and/or adds code behavior, specifically to fix a bug
  • Refactor: Changes existing code style, naming, structure, etc.
  • Testing: Adds testing
  • Docs: Adds documentation

Regression tests

New behavior tests

Expanded existing tests to confirm that the consumer is not removed prematurely and also that it is cleanly removed when a proposal passes.

Versioning Implications

If the above box is checked, which version should be bumped?

  • MAJOR: Consensus breaking changes to both the provider and consumers(s), including updates/breaking changes to IBC communication between provider and consumer(s)
  • MINOR: Consensus breaking changes which affect either only the provider or only the consumer(s)
  • PATCH: Non consensus breaking changes

Targeting

Please select one of the following:

  • This PR is only relevant to main
  • This PR is relevant to main, and should also be back-ported to v1.1.0
  • This PR is only relevant to ____ (ex: v1.0.0, v1.1.0, and v1.2.0)

Copy link
Contributor

@mpoke mpoke 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

@MSalopek MSalopek merged commit 18c485f into main Mar 24, 2023
@MSalopek MSalopek deleted the masa/799-cached-context-fix branch March 24, 2023 15:00
MSalopek added a commit that referenced this pull request Mar 24, 2023
* fix StopConsumerChain not running in cachedContext

* start hermes in docker tests

* fix some tests
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.

StopConsumerChain not running in cachedContext
5 participants