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

[Uptime Incentives]: Add test cases that demonstrate proper handling of existing inconsistent NoLock gauge state #7420

Merged
merged 14 commits into from
Feb 7, 2024

Conversation

AlpinYukseloglu
Copy link
Contributor

Closes: #7375

What is the purpose of the change

Please see issue for discussion on the problem being considered. This PR demonstrates that the design decisions made in previous PRs make it so the hacky/inconsistent state described in the issue is handled elegantly without any state-dependent branches.

Testing and Verifying

This PR adds test cases to distribute_test.go

Documentation and Release Note

  • Does this pull request introduce a new feature or user-facing behavior changes?
  • Changelog entry added to Unreleased section of CHANGELOG.md?

Where is the change documented?

  • Specification (x/{module}/README.md)
  • Osmosis documentation site
  • Code comments?
  • N/A

Copy link
Member

@czarcas7ic czarcas7ic left a comment

Choose a reason for hiding this comment

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

ACK

Base automatically changed from alpo/internal-uptime-logic to main February 7, 2024 05:09
@AlpinYukseloglu AlpinYukseloglu merged commit 59f0945 into main Feb 7, 2024
1 check passed
@AlpinYukseloglu AlpinYukseloglu deleted the alpo/handle-existing-nolock branch February 7, 2024 05:19
p0mvn pushed a commit that referenced this pull request Feb 8, 2024
…of existing inconsistent `NoLock` gauge state (#7420)

* implement validation, fallback, and wiring for using gauge duration as uptime

* add changelog

* add param into core CL distr logic and set up sanity tests

* use new param in core logic and add tests

* clean up internal gauge distribution tests

* attempt to clean up diff

* add changelog

* add test cases that cover handling of existing inconsistent state

* extract uptime fetch into helper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A:no-changelog C:x/incentives V:state/compatible/no_backport State machine compatible PR, depends on prior breaks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Uptime Incentives]: Handle inconsistent state for old CL gauges
3 participants