Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: WaywardHodl on February 17, 2022, 04:35:33 PM



Title: Tor Only Node renewing peers constantly? Normal?
Post by: WaywardHodl on February 17, 2022, 04:35:33 PM
I'm wondering if this is just my internet connection and I'm being dropped by peers due to timeouts, but I've noticed that my node takes forever to get peers upon startup and seems to drop them all after an hour or so. IBD has been going for 2 weeks. Sitting at 94.5% with .05% gain per hour. I don't understand it unless my PC is simply choosing not to send resources to Core while I'm awake and actively using the PC? Thoughts?


Title: Re: Tor Only Node renewing peers constantly? Normal?
Post by: NotATether on February 18, 2022, 08:53:03 AM
If you are using a really new version of Core, that is making use of the Tor V3 protocol so your Tor node might be looking for other V3 nodes to connect to. Currently the vast majority of Tor nodes are still using V2 which was already implemented in older Core versions.

Tor V2 nodes can't talk to V3 nodes.


Title: Re: Tor Only Node renewing peers constantly? Normal?
Post by: ABCbits on February 18, 2022, 11:29:37 AM
Have you checked your debug.log file (Bitcoin Core) and log produced by Tor for any warning/error message which could be used to identify the problem?

If you are using a really new version of Core, that is making use of the Tor V3 protocol so your Tor node might be looking for other V3 nodes to connect to. Currently the vast majority of Tor nodes are still using V2 which was already implemented in older Core versions.

Tor V2 nodes can't talk to V3 nodes.

Bitcoin Core use OnionV3 since version 0.21, which released on early 2021. There should be decent amount of node which use version 0.21 or higher. Bitnodes[1] report 81.8% nodes use version 0.21 or higher while Luke's Jr dashboard[2] report 36751 nodes (about 76%) use version 0.21 or higher.

[1] https://bitnodes.io/dashboard/ (https://bitnodes.io/dashboard/)
[2] https://luke.dashjr.org/programs/bitcoin/files/charts/software.html (https://luke.dashjr.org/programs/bitcoin/files/charts/software.html)


Title: Re: Tor Only Node renewing peers constantly? Normal?
Post by: BlackHatCoiner on February 21, 2022, 05:31:21 PM
[...]
Isn't OnionV2 deprecated yet? Indeed, 21.x nodes can communicate with both V2 and V3 Tor nodes, but according to the documentation, V2 addresses are ignored in 22.0.

Starting with version 22.0, Bitcoin Core only supports Tor version 3 hidden services (Tor v3). Tor v2 addresses are ignored by Bitcoin Core and neither relayed nor stored.

Still, though, it's weird. Lots have upgraded to 22.0.