-
Notifications
You must be signed in to change notification settings - Fork 882
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
[ENG-190] fees param: MinGasPrice #610
[ENG-190] fees param: MinGasPrice #610
Conversation
* main: Correct inflation.proto typo (evmos#608) change algolia search key (evmos#607) Changing erroneous epoch skips to daily instead of weekly (evmos#554) fix: remove dup set claims record + CLI update (evmos#605) build(deps): bump github.com/spf13/cast from 1.4.1 to 1.5.0 (evmos#604) imp: fees test coverage (evmos#586) fees: limit address derivation to 20 iterations at registration (evmos#603)
Codecov Report
@@ Coverage Diff @@
## main #610 +/- ##
==========================================
- Coverage 85.71% 82.67% -3.04%
==========================================
Files 117 122 +5
Lines 6390 6731 +341
==========================================
+ Hits 5477 5565 +88
- Misses 784 1027 +243
- Partials 129 139 +10
|
Notes:
|
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.
Thanks @loredanacirstea. Additional comments and spec updates are needed in order to document the cases that involve the base fee / fee market.
Co-authored-by: Federico Kunze Küllmer <[email protected]>
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.
Thanks! Changes LGTM. We need to update the specification in order to reflect the new changes 👍
Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran
Co-authored-by: Federico Kunze Küllmer <[email protected]>
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.
LGTM, can you add a state machine breaking change?
Co-authored-by: Federico Kunze Küllmer <[email protected]>
Co-authored-by: Federico Kunze Küllmer <[email protected]>
I tested on a local chain started with a min gas price of
|
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
* fees: add minGasPrice module param * enforce fees param for min gas prices * fees - min gas prices ante handler * fix fees ante handler, add tests * Change DefaultMinGasPrice to 0 * fees - refactor integration test descriptions for clarity * fees: introduce EthMinPriceFeeDecorator and tests * fees - fix param test * fees - compare MinGasPrice with EffectivePrice for dynamic tx * test remove test * Reintroduce removed test with proper price values * Add comment * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Fix inaccurate test comments, update evm AnteHandle explanation * Reorder genesis initialization Otherwise we get a `ERR ante handler panicked error="UnmarshalJSON cannot decode empty bytes"` error when trying to get fees & evm parameters from the stores in AnteHandle, when the gentx transactions are ran * Update x/fees/ante/eth.go error Co-authored-by: Federico Kunze Küllmer <[email protected]> * fees: fix error message in cosmos antehandle & tests * fees: be more specific with the init genesis ordering * Move MinPriceFeeDecorator to app/ante/fees.go (PR review) evmos/evmos#610 (comment) * Add unit tests for MinPriceFeeDecorators, remove redundant evm denom evmos/evmos#610 (comment) * Small fixes (PR review) * fees - update spec for MinGasPrice * s/MinPriceFeeDecorator/MinGasPriceDecorator * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * Apply suggestions from code review Co-authored-by: Federico Kunze Küllmer <[email protected]> * add change log * fees - handle error in EthMinGasPriceDecorator (PR review) evmos/evmos#610 (comment) evmos/evmos#610 (comment) * Test only DeliverTx app context Co-authored-by: Federico Kunze Küllmer <[email protected]>
Description
Create a minimum gas price param in the x/fees module that rejects transactions with gas prices lower than the minimum.
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.
PR review checkboxes:
I have...
Unreleased
section inCHANGELOG.md
Code maintenance:
I have...
godoc
and code comments.docs/
) or specification (x/<module>/spec/
)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...