Open yihuang opened 2 months ago
The changes introduce a new transaction replacement mechanism in the application, allowing a transaction to be replaced only if the new transaction's priority is higher than the existing one. This is implemented through a new function in the codebase and is accompanied by a test to ensure correct behavior in various scenarios involving transaction priorities.
Files | Change Summary |
---|---|
CHANGELOG.md , app/app.go |
Added a new function TxReplacement to manage transaction replacement based on priority. |
integration_tests/test_mempool.py |
Introduced a new test function test_tx_replacement to verify transaction replacement behavior with varying gas prices. |
Objective | Addressed | Explanation |
---|---|---|
Implement TxReplacement callback for higher gas price transactions (#1557) | ✅ |
🐰 Hopping through the code, oh what a sight,
Transactions now dance with priority in flight.
Higher gas wins, as it should be,
A merry mempool, joyful and free!
Let's celebrate this change, oh what a delight! 🎉
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 36.11%. Comparing base (
825c551
) to head (14b147f
).
Closes: #1557
Solution:
👮🏻👮🏻👮🏻 !!!! REFERENCE THE PROBLEM YOUR ARE SOLVING IN THE PR TITLE AND DESCRIBE YOUR SOLUTION HERE !!!! DO NOT FORGET !!!! 👮🏻👮🏻👮🏻
PR Checklist:
make
)make test
)go fmt
)golangci-lint run
)go list -json -m all | nancy sleuth
)Thank you for your code, it's appreciated! :)
Summary by CodeRabbit
New Features
Bug Fixes
Tests