Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: giusebage on August 16, 2021, 05:36:36 PM



Title: Tor connection getnetworkinfo score
Post by: giusebage on August 16, 2021, 05:36:36 PM
Hi everyone. I started running a node on a RPI4. I setup Bitcoin Core to 0.21.1 to fully run over Tor by setting up the HiddenService in the /etc/tor/torrc configuration file. I'm not sure if this is normal or not, but when using bitcoin-cli getnetworkinfo while everything seems working fine, the relative score is always 4. Do you observe a similar behavior on your side? If not, how can I correct this? Thank you in advance.


Title: Re: Tor connection getnetworkinfo score
Post by: AdolfinWolf on August 16, 2021, 07:53:50 PM
My testnet node also has a score of 4 and works fine but I have no idea what this means exactly or how my node is affected by this nor how exactly it is calculated.

it seems like it indicates how reliable your node is to? other nodes as per https://bitcoin.stackexchange.com/questions/70190/what-does-score-tell-me-in-getnetworkinfo

on the SE this answer is constantly referred to though it does not really give any more information

https://bitcoin.stackexchange.com/questions/53456/does-having-a-pruned-node-reduce-its-network-score/

though I'm pretty sure that that is wrong, since my node currently has more than 4 incoming connections* concurrently, let alone historically?


Title: Re: Tor connection getnetworkinfo score
Post by: giusebage on August 19, 2021, 06:18:50 AM
Thank you for your reply.

I have tested many things trying to find the root cause to this problem, but I was not able to figure it out. Initially I thought it was due to a wrongly setup Tor, but I must have reinstalled Tor and followed the steps in various guides at least four times.

I think it might be due to a Tor <-> Bitcoin interaction. I've gone in the source code like here in the stackexchange (https://bitcoin.stackexchange.com/questions/107998/low-inbound-connections-and-fixed-getnetworkinfo-score-at-4).

I'm not familiar with Mutex objects, but it seems to me that mapLocalHost and cs_mapLocalHost are not working as they are supposed to. While this relative score is not really a big deal because I still have some inbound connections and the 8 + 2 outbound, I'd be curious to understand the root cause of this behavior.

edit: Typos.



Title: Re: Tor connection getnetworkinfo score
Post by: darkv0rt3x on September 14, 2021, 09:28:13 PM
I think that is not supposed to change behind Tor. I have asked the same here sometime ago and if I'm not mistaken, some bitcoin dev (maybe achow) told me that it is not supposed to change when running behind Tor. If I find the thread where I ask that, I'll link it here!


PS: Well, I can't find anything. Maybe that was told me in some chat conversation or if I just can't find it.


Title: Re: Tor connection getnetworkinfo score
Post by: giusebage on September 24, 2021, 01:36:10 PM
Thank you very much. Yes, I saw your old post but couldn't get to the end of this rabbit hole. Thank you very much!