mimblewimble / grin-wallet

Grin Wallet
Apache License 2.0
182 stars 133 forks source link

Need option for Don't start local tor sender #669

Open galiy opened 1 year ago

galiy commented 1 year ago

Hi!

Is your feature request related to a problem? Please describe. I have persistent tor proxy (tor runned as service). It work as Hidden service and as socks-5 proxy. I set parameter "use_tor_listener = false" - it's Ok.

When i send transaction or finalization attempt, wallet try run new instance of tor. It don't need. If i set port in parameter socks_proxy_addr as my persistent tor proxy, and try send tramsaction - i have error:

20230106 21:37:11.185 DEBUG grin_wallet_api::owner - Send (TOR): Could not send Slate via TOR: Tor Process Error: Tor("[err] Reading config failed--see warnings above.", ["[warn] Path for DataDirectory (./data) is relative and will resol ve to /root/.grin/main/tor/sender/./data. Is this what you wanted?", "[warn] Could not bind to 192.168.13.253:9050: Address already in use. Is Tor already running?", "[warn] Failed to parse/validate config: Failed to bind one of the list ener ports."]) 20230106 21:37:11.185 DEBUG grin_wallet_api::owner - Unable to send via TOR: Tor Process Error: Tor("[err] Reading config failed--see warnings above.", ["[warn] Path for DataDirectory (./data) is relative and will resolve to /root/.grin/ main/tor/sender/./data. Is this what you wanted?", "[warn] Could not bind to 192.168.13.253:9050: Address already in use. Is Tor already running?", "[warn] Failed to parse/validate config: Failed to bind one of the listener ports."]) 2

Describe alternatives you've considered please, make new good parameter in config file "start_tor_sender = false"