-
levino commented at 6:26 am on March 17, 2016: noneI could not find anything on how to get the hidden services address when running with “listenonion=1”. Can I get it from the logs?
-
jonasschnelli added the label P2P on Mar 17, 2016
-
laanwj commented at 7:48 am on March 17, 2016: member
getnetworkinfo
should have it under “localaddresses” -
levino commented at 8:12 am on March 17, 2016: none
Most helpful.
But the localaddresses array is empty… This is what I get
0{ 1 "version": 120000, 2 "subversion": "/Classic:0.12.0/", 3 "protocolversion": 70012, 4 "localservices": "0000000000000005", 5 "timeoffset": 0, 6 "connections": 8, 7 "networks": [ 8 { 9 "name": "ipv4", 10 "limited": false, 11 "reachable": false, 12 "proxy": "", 13 "proxy_randomize_credentials": false 14 }, 15 { 16 "name": "ipv6", 17 "limited": false, 18 "reachable": false, 19 "proxy": "", 20 "proxy_randomize_credentials": false 21 }, 22 { 23 "name": "onion", 24 "limited": false, 25 "reachable": false, 26 "proxy": "", 27 "proxy_randomize_credentials": false 28 } 29 ], 30 "relayfee": 0.00005000, 31 "localaddresses": [ 32 ], 33 "warnings": "" 34}
When I look into the debug.log I see this:
02016-03-17 08:09:04 tor: Connected to Tor version 0.2.7.6 12016-03-17 08:09:04 tor: Supported authentication method: COOKIE 22016-03-17 08:09:04 tor: Supported authentication method: HASHEDPASSWORD 32016-03-17 08:09:04 tor: Supported authentication method: SAFECOOKIE 42016-03-17 08:09:04 tor: Using SAFECOOKIE authentication, reading cookie authentication from /var/run/tor/control.authcookie 52016-03-17 08:09:04 tor: Authentication cookie /var/run/tor/control.authcookie could not be opened (check permissions)
I put in the password for the control service with “torpassword=password”. I do not want to use cookieauthentication. Is the setup actually failing?
-
levino commented at 8:27 am on March 17, 2016: noneSorry, I have to add one thing: I am still reindexing. Maybe that is the issue.
-
laanwj commented at 11:33 am on March 17, 2016: memberYes, the setup is failing. If it’s not actually authenticating to tor it won’t get a hidden service address. Disabling cookie authentication at the Tor side should solve this. Reindexing doesnn’t have to do with it.
-
laanwj commented at 11:35 am on March 17, 2016: memberBTW, for issues with classic you should use this issue tracker: https://github.com/bitcoinclassic/bitcoinclassic/issues
-
laanwj closed this on Mar 17, 2016
-
laanwj referenced this in commit 8f5dcbc7e9 on Mar 17, 2016
-
laanwj commented at 11:58 am on March 17, 2016: member
See also #7703
:) I understand your point @laanwj But this is such a basic part of the code that I hope it is okay that I put the issue where I would assume it might have come from.
Principally we can’t support custom changes on top of the code, it’s not our responsibility and also makes it impossible to determine what bug comes from our code or from other’s changes. So - before reporting here at least make sure that you tested that it also happens with the code from here. (in this case that was clear, sure)
-
levino commented at 12:44 pm on March 17, 2016: none
One last thing @laanwj if you dont mind. How can I make the bitcoind accept connections on tor AND ipv4 AND ipv6. I am trying this:
0# bitcoin.conf configuration file. Lines beginning with # are comments. 1daemon=1 2listen=1 3rpcpassword=bbbbb 4minrelaytxfee=0.00005 5torpassword=xxxxx 6discover=1
but get this:
0bitcoin-cli getnetworkinfo 1{ 2 "version": 120000, 3 "subversion": "/Classic:0.12.0/", 4 "protocolversion": 70012, 5 "localservices": "0000000000000005", 6 "timeoffset": -1, 7 "connections": 13, 8 "networks": [ 9 { 10 "name": "ipv4", 11 "limited": false, 12 "reachable": false, 13 "proxy": "", 14 "proxy_randomize_credentials": false 15 }, 16 { 17 "name": "ipv6", 18 "limited": false, 19 "reachable": false, 20 "proxy": "", 21 "proxy_randomize_credentials": false 22 }, 23 { 24 "name": "onion", 25 "limited": false, 26 "reachable": true, 27 "proxy": "127.0.0.1:9050", 28 "proxy_randomize_credentials": true 29 } 30 ], 31 "relayfee": 0.00005000, 32 "localaddresses": [ 33 { 34 "address": "kljhw4txgqymrcer.onion", 35 "port": 8333, 36 "score": 4 37 } 38 ], 39 "warnings": "" 40}
Looks to me as if the local ipv4 and ipv6 is not being used / propagated to the network…
-
laanwj commented at 1:24 pm on March 17, 2016: memberYes, that is supported - if you’re not using either
-onlynet
or-proxy
explicitly, it should use tor/onion as additional network, so that should be ok. -
levino commented at 1:27 pm on March 17, 2016: noneShould it then not list my ip addresses in the “localaddresses” array?
-
laanwj referenced this in commit 2e494489c3 on Jun 6, 2016
-
DrahtBot locked this on Sep 8, 2021
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-21 12:12 UTC
More mirrored repositories can be found on mirror.b10c.me