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

feat!: Add gas limits to queries #16239

Merged
merged 14 commits into from
Aug 8, 2023
Merged

feat!: Add gas limits to queries #16239

merged 14 commits into from
Aug 8, 2023

Conversation

ValarDragon
Copy link
Contributor

@ValarDragon ValarDragon commented May 20, 2023

Description

Closes #16237

Added a baseapp test. Is there anywhere where we test e2e that the new config value is read correctly and passed into baseapp? I didn't see such a test anywhere


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • included the correct type prefix in the PR title
  • added ! to the type prefix if API or client breaking change
  • targeted the correct branch (see PR Targeting)
  • provided a link to the relevant issue or specification
  • followed the guidelines for building modules
  • included the necessary unit and integration tests
  • added a changelog entry to CHANGELOG.md
  • included comments for documenting Go code
  • updated the relevant documentation or specification
  • reviewed "Files changed" and left comments if necessary
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage
  • manually tested (if applicable)

@ValarDragon ValarDragon changed the title feature: Add gas limits to queries feat!: Add gas limits to queries May 20, 2023
@ValarDragon ValarDragon marked this pull request as ready for review May 20, 2023 18:09
@ValarDragon ValarDragon requested a review from a team as a code owner May 20, 2023 18:09
@github-prbot github-prbot requested review from a team, JeancarloBarrios and samricotta and removed request for a team May 20, 2023 18:09
@ValarDragon
Copy link
Contributor Author

ValarDragon commented May 20, 2023

Is there a clean way to do a go test, that shows what the error message will be if you do a grpc query that exceeds the gas limit?

@alexanderbez
Copy link
Contributor

We've essentially wrapped up #15519 -- we just need review. I would personally like to see that merged prior to any major baseapp changes, but I'm not opposed to getting this in.

@github-actions
Copy link
Contributor

github-actions bot commented Jul 9, 2023

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

utACK. The approach looks correct to me. I think @julienrbrt had a comment or two. Mind addressing that quickly @ValarDragon?

baseapp/baseapp.go Outdated Show resolved Hide resolved
@github-actions github-actions bot removed the Stale label Jul 11, 2023
Copy link
Collaborator

@odeke-em odeke-em left a comment

Choose a reason for hiding this comment

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

LGTM, thank you @ValarDragon!

Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Copy link
Member

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

overall looks good, sorry for taking a while to get this in.

@tac0turtle tac0turtle added the backport/v0.50.x PR scheduled for inclusion in the v0.50's next stable release label Aug 7, 2023
@github-actions github-actions bot added the C:Confix Issues and PR related to Confix label Aug 7, 2023
@tac0turtle tac0turtle requested a review from julienrbrt August 8, 2023 14:43
Copy link
Member

@julienrbrt julienrbrt left a comment

Choose a reason for hiding this comment

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

utACK.

CHANGELOG.md Outdated Show resolved Hide resolved
baseapp/baseapp_test.go Outdated Show resolved Hide resolved
@julienrbrt julienrbrt enabled auto-merge August 8, 2023 20:18
@julienrbrt julienrbrt added this pull request to the merge queue Aug 8, 2023
Merged via the queue into main with commit dea5b97 Aug 8, 2023
@julienrbrt julienrbrt deleted the dev/add_query_gas_limit branch August 8, 2023 20:32
mergify bot pushed a commit that referenced this pull request Aug 8, 2023
Co-authored-by: Marko <marbar3778@yahoo.com>
Co-authored-by: Aleksandr Bezobchuk <alexanderbez@users.noreply.github.com>
Co-authored-by: Julien Robert <julien@rbrt.fr>
(cherry picked from commit dea5b97)
tac0turtle pushed a commit that referenced this pull request Aug 9, 2023
Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com>
@faddat faddat mentioned this pull request Nov 8, 2024
12 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/v0.50.x PR scheduled for inclusion in the v0.50's next stable release C:Confix Issues and PR related to Confix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature]: Add GasMetering for queries
5 participants