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

Ensure rate limits are not applied to packets that aren't ics20s #7357

Merged
merged 8 commits into from
Feb 1, 2024

Conversation

nicolaslara
Copy link
Contributor

What is the purpose of the change

Non-ics20 packets were being caught by rate limits. We check the packets now and skip rate limits if they don't have an amount or denom.

Testing and Verifying

added a unit test

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

@nicolaslara nicolaslara added the V:state/breaking State machine breaking PR label Jan 23, 2024
@nicolaslara nicolaslara reopened this Jan 29, 2024
Comment on lines +562 to +563
// This will error out, but not because of rate limiting
suite.Require().NotContains(err.Error(), "rate limit")
Copy link
Member

Choose a reason for hiding this comment

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

Instead of notContains, could we just match the error that we get from this? Just in case we update the rate limit error in the future.

Is a nit though.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was thinking the same but from a different direction: if the underlying error changes in ibc, this will continue to pass. But I can add the other check when I untangle the uncommitted changes on my current branch

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.

Just a small nit, if you don't want to address feel free to merge.

@nicolaslara nicolaslara merged commit f68a6dd into main Feb 1, 2024
1 check passed
@nicolaslara nicolaslara deleted the nicolas/only-rate-limit-ics20 branch February 1, 2024 09:55
@github-actions github-actions bot mentioned this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
V:state/breaking State machine breaking PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants