Closed bladedoyle closed 2 years ago
https://github.com/SChernykh/p2pool/commit/340a3e85c864aa9f176910bdbe75fb29fe0c2ba5 should fix this, can you test it?
Testing now. Its hard to prove a negative but will assume fixed if not seen for some time.
You should test for 65536 seconds (~18 hours 12 minutes) to be sure. If it doesn't happen after that, it's fixed.
No issue in > 24 hours, seems resolved. Thanks much!
This issue only started occurring me AFTER the latest update. I'm on 2.2.1, latest version of xmrig, monerod, etc. @SChernykh I am on Manjaro, and am mining with a Ryzen 7 3700x on the mini pool. I do not have a custom difficulty set anywhere. Here is xmrig log:
[2022-08-21 23:25:12.439] net new job from 127.0.0.1:3333 diff 4002K algo rx/0 height 2694906 (102 tx)
[2022-08-21 23:25:14.097] net new job from 127.0.0.1:3333 diff 4002K algo rx/0 height 2694906 (103 tx)
[2022-08-21 23:25:27.739] net new job from 127.0.0.1:3333 diff 2000K algo rx/0 height 2694906 (107 tx)
[2022-08-21 23:25:39.562] no results yet
[2022-08-21 23:25:44.758] net new job from 127.0.0.1:3333 diff 1000K algo rx/0 height 2694906 (110 tx)
[2022-08-21 23:25:47.378] net new job from 127.0.0.1:3333 diff 1000K algo rx/0 height 2694907 (5 tx)
[2022-08-21 23:25:48.912] net new job from 127.0.0.1:3333 diff 1000K algo rx/0 height 2694907 (5 tx)
[2022-08-21 23:25:55.216] net new job from 127.0.0.1:3333 diff 500054 algo rx/0 height 2694907 (5 tx)
[2022-08-21 23:26:03.417] net new job from 127.0.0.1:3333 diff 500054 algo rx/0 height 2694907 (8 tx)
[2022-08-21 23:26:06.644] miner speed 10s/60s/15m 8452.9 n/a n/a H/s max 8853.6 H/s
[2022-08-21 23:26:10.788] net new job from 127.0.0.1:3333 diff 250012 algo rx/0 height 2694907 (9 tx)
[2022-08-21 23:26:19.288] net new job from 127.0.0.1:3333 diff 250012 algo rx/0 height 2694907 (10 tx)
[2022-08-21 23:26:21.403] net new job from 127.0.0.1:3333 diff 250012 algo rx/0 height 2694907 (10 tx)
[2022-08-21 23:26:25.135] net new job from 127.0.0.1:3333 diff 125002 algo rx/0 height 2694907 (10 tx)
[2022-08-21 23:26:28.284] cpu accepted (1/0) diff 125002 (0 ms)
[2022-08-21 23:26:39.830] net new job from 127.0.0.1:3333 diff 125002 algo rx/0 height 2694907 (10 tx)
[2022-08-21 23:26:40.138] cpu accepted (2/0) diff 125002 (0 ms)
[2022-08-21 23:26:46.521] net new job from 127.0.0.1:3333 diff 125002 algo rx/0 height 2694907 (13 tx)
[2022-08-21 23:26:50.108] net new job from 127.0.0.1:3333 diff 125002 algo rx/0 height 2694907 (14 tx)
[2022-08-21 23:26:50.675] net new job from 127.0.0.1:3333 diff 125002 algo rx/0 height 2694907 (14 tx)
[2022-08-21 23:26:58.651] net new job from 127.0.0.1:3333 diff 125002 algo rx/0 height 2694907 (15 tx)
The "accepted" shares are not shown on p2pool, since the diff is too low.
This issue only started occurring me AFTER the latest update
What issue exactly? It's working as it's supposed to.
How exactly is giving too low of a difficulty, resulting in shares that aren't actually valid by p2pool, mean it's "working as it's supposed to" when it's the same exact bug as the one reported above by bladedoyle?
Right now p2pool mini has ~12 MH/s, with this (before the latest update 2.2.1), my CPU would find a valid share (that would also be valid by p2pool) roughly every 4 hours. After 2.2.1, I'm finding shares probably every 30 seconds, because the difficulty is just all over the place and not actually what it's supposed to be.
But hey, I guess it's working as intended.
It's not the same bug, it's autodiff working. Use --no-autodiff
in command line to turn it off.
I see, I missed that in the 2.1 changelog. In my opinion it's very misleading and will be confusing for new p2pool users. I just assumed it was broken. It's back to normal now.
Quite the opposite. You are the first who was confused, and before 2.1 I had to explain the high p2pool difficulty almost daily. Autodiff is the default way of operation for almost all pools, so the way it worked before 2.1 was confusing for new users.
Hmm, weird. So fewer people are confused now when they see a ton of "accepted" shares but nothing on p2pool?
Thanks for the help though. The difficulty is back to normal now on my instance. Back to p2pool mining. :]
I see in the logs that a very low difficulty job was given. Is this some bug in the autodiff code? Here is the information I have:
XMRig logs:
P2Pool logs: