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

MsgFee Enhancements for Low/Zero Fee transactions #1641

Open
4 tasks
iramiller opened this issue Aug 2, 2023 · 0 comments
Open
4 tasks

MsgFee Enhancements for Low/Zero Fee transactions #1641

iramiller opened this issue Aug 2, 2023 · 0 comments
Labels
enhancement New feature or request msgfees Msg based fee module
Milestone

Comments

@iramiller
Copy link
Member

Summary

Allowing low or no cost msgs exposes the chain to a new set of risks that the traditional gas cost was intended to prevent. As part of adding support for this approach a few changes are required to ensure that msgs do not use excessive amounts of gas/blockspace when there is no cost.

Problem Definition

One of the common configurations expected for a private zone is to have a zero gas price since the network infrastructure will often be ran entirely by a single entity. In these configurations there is no need to collect and distribute gas fees to the rest of the infrastructure providers. As a related point there are some transactions that it makes sense to allow for free (such as in certain cases where IBC transactions maybe subsidized). These transactions should still be constrained to a reasonable amount of gas due to the hard limits on the amount of gas available in each block.

Proposal

Update the msgfee module to better reflect its intention of pricing certain msgs and controlling their use. Specifically add the ability to set a maximum gas allowed for each msg type in addition to a specifying a fee (or lack there of). Ensure that when a multiple msg transaction is submitted that it does not use more gas than is allowed for each transaction.

Note: This is a bit of a dangerous limit to put in place because it can prevent valid transactions from processing if the gas limits are too low or the chain cost rise for some unexpected reason. It might be useful to track a running average of gas used per msg type along with minimum/maximum values for successful transactions that include the msg type.


For Admin Use

  • Not duplicate issue
  • Appropriate labels applied
  • Appropriate contributors tagged
  • Contributor assigned/self-assigned
@SpicyLemon SpicyLemon added this to the v1.18.0 milestone Sep 6, 2023
@iramiller iramiller added enhancement New feature or request msgfees Msg based fee module labels Sep 6, 2023
@iramiller iramiller modified the milestones: v1.18.0, v1.19.0 Jan 4, 2024
@SpicyLemon SpicyLemon modified the milestones: v1.19.0, v1.20.0 Jul 15, 2024
@iramiller iramiller modified the milestones: v1.20.0, backlog Sep 12, 2024
@SpicyLemon SpicyLemon modified the milestones: backlog, v1.21.0 Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request msgfees Msg based fee module
Projects
Development

No branches or pull requests

2 participants