xmrig-proxy icon indicating copy to clipboard operation
xmrig-proxy copied to clipboard

Feature Request

Open kadirgun opened this issue 3 years ago • 5 comments

Add "shareTargetTime", "maxDiff", "minDiff" options as in MoneroOcean/xmr-node-proxy

kadirgun avatar Dec 22 '21 05:12 kadirgun

YES PLEASE!

xmrig-proxy wastes my hashrate.

for example. If my rig hashes at 2500 h/s the difficulty at which it is most successful is at around 200000. So when the proxy is sending work at around 200k I get an "accepted" about 1 per minute. However, if the rig happens to get lucky and hits two or three times in a minute, the proxy will start doubling the Diff. And if I get lucky and hit again, it doubles the Diff again! (you'd be surprised how often this happens!) So now I'm at 800000+ Diff and there is no way my rig is successful. So then the proxy begins the painfully slow process of lowering the Diff back down to a reasonable level. And this is not like increasing Diff where it doubles quickly, this is painfully slower so that I end up going for 10 to 20 minutes without a hit.

I do understand that in the beginning, when I just connect my rig there is benefit for big changes in Diff to get the rig where it needs to be. But after it reaches a steady state (one or two hits per minute) the rate of change should be drastically reduced.

cyizard avatar Apr 09 '22 15:04 cyizard

8 shares with 100000 diff will give you the same reward pool-side as 1 share with 800000 diff. Number of shares doesn't matter, profit/reward will all average to your actual hashrate even if you get high diff sometimes.

SChernykh avatar Apr 09 '22 16:04 SChernykh

Of course your correct when you say "8 shares with 100000 diff will give you the same reward pool-side as 1 share with 800000 diff", except you miss one very important detail. My rig wont do 800000. So I get nothing... not 1000000 eight times or 800000 one time.--i get nothing, but wait time until the diff gets back down to a level my rig can actually hash.

cyizard avatar Apr 10 '22 10:04 cyizard

My rig wont do 800000. So I get nothing

This is where you're wrong. It gets shares, just 8 times less frequent. Even if you don't find a share for some pool jobs, it doesn't matter. Pool counts shares and their difficulty, it doesn't care if your rig took long time to find it.

SChernykh avatar Apr 10 '22 11:04 SChernykh

Hi SChernykh thanks for the insight and your quick replies!

ok, so I'm doing a 24 hour test. 12 hours running the rig in stock proxy mode and 12 hours running in a mode where I can set the difficulty. I'll report the "total hashes submitted" for each instance.

To me this is a case of the tortoise and the hare. Currently I feel the proxy runs like the hare, with wild explosive speed, but with slow times as well. I personally think running like the tortoise is better...slow and steady but in the end you win the race! We will see!

cyizard avatar Apr 10 '22 11:04 cyizard