refactor(monero-rpc-pool): ureq -> raw hyper#487
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis update introduces comprehensive support for Tor routing and bandwidth tracking in the Monero RPC pool and its associated GUI and backend systems. The backend transitions from synchronous to asynchronous HTTP proxying with hyper, adds optional Tor integration, and tracks bandwidth usage. The GUI and settings are extended to allow toggling Monero-over-Tor routing and display bandwidth statistics. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant GUI
participant Backend
participant MoneroRPCPool
participant TorClient
User->>GUI: Enable "Monero over Tor" in settings
GUI->>Backend: Pass enable_monero_tor flag via Tauri
Backend->>MoneroRPCPool: Start with config (tor_client: Option)
MoneroRPCPool->>TorClient: (If enabled) Bootstrap Tor client in background
GUI->>MoneroRPCPool: Proxy Monero wallet request
MoneroRPCPool->>TorClient: (If enabled and not whitelisted) Open connection via Tor
MoneroRPCPool->>Monero Node: Proxy request (via Tor or clearnet)
Monero Node-->>MoneroRPCPool: Response
MoneroRPCPool->>GUI: Return response, update bandwidth stats
GUI->>User: Show bandwidth and sync progress
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. 📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (18)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
bugbot run |
…ent, record lowerst seen block height, small style changes
…en window duration for bandwidth tracker
|
bugbot run |
|
bugbot run |
missing connection pooling
not sure how we are handling https and http and self-signed https certificates
Summary by CodeRabbit
New Features
Improvements
Settings
Bug Fixes
Chores