SChernykh / p2pool

Decentralized pool for Monero mining
GNU General Public License v3.0
1.03k stars 124 forks source link

TOR support #202

Open Scalena opened 1 year ago

Scalena commented 1 year ago

Integrated TOR support may be an important feature for the privacy-conscious Monero community. This would include connecting to peers through the socks5 TOR proxy, running a p2pool node as a hidden service and advertising its .onion address to peers. Similarly, I2P support can be considered, but this might better be addressed in a separate issue.

SChernykh commented 1 year ago

It's in my list of things to do, but be aware that the typical ping time when connecting through TOR is around 500 ms which is very bad for mining. P2Pool has block time of 10 seconds, and 500 ms ping will give you a lot of uncle blocks = direct loss of profitability.

As of now, you can already run a P2Pool node as a hidden service for your mining rigs - XMRig supports SOCKS5 proxies and no special support is required from P2Pool to run as a hidden service.

Scalena commented 1 year ago

I realize that the longer latency of TOR could be a problem. However, unless it makes mining unrealistic, it might be an acceptable cost for some. At least, I'd look forward to it if you decide to implement it.

honobo commented 10 months ago

p2pool --host 127.0.0.1 --socks5 127.0.0.1:9050

hundehausen commented 10 months ago

Here is an example of Seth: https://github.com/sethforprivacy/p2pool-docker/blob/main/examples/docker-compose.yml