-
Notifications
You must be signed in to change notification settings - Fork 17
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: in-protocol minimum gas price #107
Conversation
// CheckTxFeeWithGlobalMinGasPrices will enforce the global minimum | ||
// gas price for all transactions. | ||
TxFeeChecker: CheckTxFeeWithGlobalMinGasPrices, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTE: this is the place where min gas price is enforced
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
We should probably update
To use the min global default |
Resolves https://github.com/babylonlabs-io/pm/issues/49
This PR introduces the in-protocol minimum gas price mechanism, in which the consensus (more specifically the AnteHandler) enforces every tx has to set a gas price at least 0.002 ubbn. The PR also provides relevant tests. The impl closely follows celestiaorg/celestia-app#2985.
In addition, this PR creates a new package
app/ante
to abstract out the construction of the AnteHandler for Babylon, following the practice at Celestia.