refactor: inline MempoolState into MempoolManager#628
refactor: inline MempoolState into MempoolManager#628xdustinface wants to merge 1 commit intofix/broadcast-tx-local-processingfrom
MempoolState into MempoolManager#628Conversation
Move `transactions` and `recent_sends` directly into `MempoolManager` as plain fields, removing the `MempoolState` struct and its `Arc<RwLock<...>>` wrapper. The dead `pending_balance` and `pending_instant_balance` tracking is dropped entirely since no code outside of the struct itself ever read those values. `remove_confirmed` and `prune_expired` are no longer async since they no longer need to acquire a lock.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (4)
💤 Files with no reviewable changes (2)
📝 WalkthroughWalkthroughThe pull request removes the shared Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~50 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@CodeRabbit review |
✅ Actions performedReview triggered.
|
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## fix/broadcast-tx-local-processing #628 +/- ##
=====================================================================
- Coverage 67.73% 67.60% -0.14%
=====================================================================
Files 318 318
Lines 67914 67889 -25
=====================================================================
- Hits 46001 45895 -106
- Misses 21913 21994 +81
|
Move
transactionsandrecent_sendsdirectly intoMempoolManageras plain fields, removing theMempoolStatestruct and itsArc<RwLock<...>>wrapper. The deadpending_balanceandpending_instant_balancetracking is dropped entirely since no code outside of the struct itself ever read those values.remove_confirmedandprune_expiredare no longer async since they no longer need to acquire a lock.Based on:
dispatch_local#626Summary by CodeRabbit