refactor: inline MempoolState into MempoolManager#628
refactor: inline MempoolState into MempoolManager#628xdustinface wants to merge 1 commit intov0.42-devfrom
MempoolState into MempoolManager#628Conversation
|
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 @@
## v0.42-dev #628 +/- ##
=============================================
- Coverage 67.81% 67.80% -0.02%
=============================================
Files 318 318
Lines 67976 67849 -127
=============================================
- Hits 46100 46003 -97
+ Misses 21876 21846 -30
|
The base branch was changed.
|
This PR has merge conflicts with the base branch. Please rebase or merge the base branch into your branch to resolve them. |
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.
c85bef9 to
9731037
Compare
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