SChernykh / p2pool

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

AutoDiff #165

Closed jameswillhoite closed 2 years ago

jameswillhoite commented 2 years ago

Just installed the v2.1 pool and like the AutoDiff feature. Was hoping for this when I first found p2pool. Only issue I have is it starts out at the max diff then slowly comes down. Wouldn't it be better to start out low and increase the diff? I'm running the mini chain, so some of my machines have a diff of around 10000. I have one machine that is at diff of 70000 so I tried to specify a custom diff of 10000 in hopes that it would increase that machine as shares are submitted, but it did not.

bladedoyle commented 2 years ago

Note that XMRvsBEAST Bonus Hash Rate Raffle requires a "high" difficulty or it will reject the job and count it as a failure. For miners with very high hash rate, starting low will result in a lot of shares initially. Maybe p2pool could take an initial autodiff value as an option?

jameswillhoite commented 2 years ago

That or if we supply a starting diff go from there. I can specify say 70k and the pool can start from that point and adjust up or down.

SChernykh commented 2 years ago

https://github.com/SChernykh/p2pool/commit/b267c19a45e4dfc9eb396dd2308f92ceff04b55d should be sufficient for all practical purposes.