-
-
Notifications
You must be signed in to change notification settings - Fork 155
Final haveno-with-external-tor.sh PR #1677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
| @@ -0,0 +1,12 @@ | |||
| #!/bin/sh | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please rename this file to haveno-with-external-tor-monerod.sh for consistency with the other script.
|
Maybe @boldsuck has any feedback on these 2 scripts? |
|
I can test it tomorrow. Generally, though, the script needs to be rerun every time Haveno starts. |
…l-tor-monerod.sh.sh renamed
|
@woodser renaming done. For the script, one it is marked as an executable is really makes a 'flawless' launch of all processes and everything is configured correctly |
Thinking to add a comment at the top of the scripts instructing to launch: In haveno-with-external-tor.sh: In haveno-with-external-tor-monerod.sh: That will help make it clear for newcomers. |
Dynamically finds instance wide haveno user data directory
Forgot to add DisableNetwork
Updating path finding method
|
I have testet On the second start, after I had previously started Haveno with I also have a second Back when we didn't have DirectBindTor, I just started Haveno like Bisq with: |
|
@boldsuck yes, Tor and haveno will crash if theres no user data as the script uses user data's tor data and configuration to launch Tor. And what you see ( |
…-tor-monerod.sh misstyped filename
detaching tor flag
|
But why is the state file created and updated and consenus & certs? And 4 guards are used instead of 2. It may be different on Tails. With DirectBindTor my entire ~/.local/share/Haveno-reto/xmr_mainnet/tor/ folder remains empty. |
|
@boldsuck idk about the state file. for the controlport, please read the script and haveno's torrc to understand why i did this. and yes since you externaly use a hidden service your tor folder is empty but thats because you use a sophisticated setup |
|
So this will crash on first startup without doing some setup first? |
|
Yes, user needs to launch haveno one time to init the tor files and after this the script can be used |
|
I just don't understand what's wrong with DirectBindTor. Haveno can do it, Bisq can't.
|
Helps to externally using Tor for Haveno and configuring Haveno with an external Tor process
For launching:
$ chmod +x haveno-with-external-tor.sh && ./haveno-with-external-tor.shControlPort AUTOsetting by saving the control port--ControlPortWriteToFile $TORHOME/.tor/control.portand getting it for launching haveno--torControlPort=$(cat $TORHOME/.tor/control.port | sed 's/.*:\([0-9]\+\)/\1/')DisableNetwork 1config (crashing Haveno at startup) with--DisableNetwork 0