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: FeeDecorator #323

Closed
wants to merge 37 commits into from
Closed

feat: FeeDecorator #323

wants to merge 37 commits into from

Conversation

inon-man
Copy link
Collaborator

@inon-man inon-man commented Aug 17, 2023

Summary of changes

Introducing new FeeDecorator for AnteHandler that combines TaxFeeDecorator, DeductFeeDecorator, and BurnTaxFeeDecorator into one.

This PR also includes oracle prioritization using mempool v1, which will eliminate the need of custom CometBFT. (classic-terra/cosmos-sdk#9)

@inon-man inon-man added the enhancement New feature or request label Aug 17, 2023
@inon-man inon-man self-assigned this Aug 17, 2023
@inon-man inon-man marked this pull request as ready for review August 17, 2023 12:52
@nghuyenthevinh2000
Copy link
Contributor

nghuyenthevinh2000 commented Aug 20, 2023

I think we need more testing for the whole cometbft - sdk - core stack to make sure that oracleTx is prioritized.

When I look at priority mempool feature, it belongs to mempool v1 in cometbft, not v0. Original oracleTx logic was implemented in v0 mempool and we are still using v0.

To enable v1 mempool, it needs a configuration change here.

Screenshot 2023-08-20 at 11 13 54

In config.toml:

Screenshot 2023-08-20 at 11 17 26

Let's leave this item after this upgrade

Copy link
Contributor

@nghuyenthevinh2000 nghuyenthevinh2000 left a comment

Choose a reason for hiding this comment

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

Need integration testing of cometbft v1 mempool - core for oracleTx priority

@inon-man
Copy link
Collaborator Author

inon-man commented Aug 20, 2023

I would rather recommend to remove support for mempool v0 and use mempool v1 as a default. Not optional.

Base automatically changed from cosmos-sdk-46 to main August 21, 2023 08:20
@inon-man inon-man closed this Aug 25, 2023
@inon-man inon-man deleted the fee-decorator branch August 25, 2023 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants