chain
chain copied to clipboard
[Mempool] Implement custom mempool
Implementation details
Please ensure the following requirements are met before submitting a pull request:
- [ ] The pull request is targeted against the correct target branch
- [ ] The pull request is linked to an issue with appropriate discussion and an accepted design OR is linked to a spec that describes the work.
- [ ] The pull request includes a description of the implementation/work done in detail.
- [ ] The pull request includes any and all appropriate unit/integration tests
- [ ] You have added a relevant changelog entry to
CHANGELOG_UNRELEASED.md - [ ] You have re-reviewed the files affected by the pull request (e.g. using the
Files changedtab in the Github PR explorer)
@CodiumAI-Agent /review
PR Reviewer Guide 🔍
(Review updated until commit https://github.com/bandprotocol/chain/commit/c2f9455002833cedfdb1dba14519d6f612740dd6)
Here are some key observations to aid the review process:
| ⏱️ Estimated effort to review: 4 🔵🔵🔵🔵⚪ |
| 🧪 PR contains tests |
| 🔒 No security concerns identified |
⚡ Recommended focus areas for reviewConcurrency Safety
blocked flag and internal state (e.g., txIndex) are accessed without synchronization in methods like SetBlocked and readers in FillProposal. This can cause data races under concurrent mempool operations. |
Persistent review updated to latest commit https://github.com/bandprotocol/chain/commit/adfd33283f85ef3780244d3804113270ba95ab40
Persistent review updated to latest commit https://github.com/bandprotocol/chain/commit/c2f9455002833cedfdb1dba14519d6f612740dd6