feat(electrum): route onion servers through isolated Tor - #2582
Conversation
|
Claude finished @ethicnology's task in 8m 50s —— View job PR Review: route onion Electrum servers through isolated Tor
SummaryThe architecture is solid: 1.
|
29fb6fe to
6f13590
Compare
6f13590 to
f49bb9d
Compare
f49bb9d to
35f3bf4
Compare
c3b8cea to
e4bea02
Compare
7568c06 to
11c490c
Compare
11c490c to
03e26f6
Compare
03e26f6 to
c2c702f
Compare
c2c702f to
fbe9f81
Compare
Stacked on the
feat/tor-recoverbullPR. Review that one first.The second Tor consumer moves onto
bull_tor: an Electrum server reached over.onionnow gets its own isolated session, separate from RecoverBull's.ElectrumServerUrlbecomes a value object that parses and validates a server address and answers whether it is an onion host, instead of that decision being made from string checks at the call sites.ElectrumSocketConnectorperforms the connection, over Tor or clear, andElectrumTorSessionPortis the capability the Electrum layer depends on so it never reaches intobull_tor's data layer.ElectrumFallbackExceptionmakes the fallback path explicit: when an onion server cannot be reached, the caller learns that the fallback happened rather than silently getting a clearnet connection. The connectivity and server-status adapters are updated accordingly, and the Tor proxy error banner now reflects the real state.Verified: whole-project analyze clean, and the Electrum suites pass, including the new
electrum_server_url_test.dart,electrum_socket_connector_test.dart,electrum_tor_session_adapter_test.dartand the connectivity adapter tests.