Page 1 of 1

Significant increase in scrypt profitability

Posted: Fri Jul 09, 2021 3:22 pm
by Steve Sokolowski
Thanks to reports from several customers, we discovered a major flaw that unnecessarily lowered scrypt profitability. The reported profitability is accurate, but actual amounts earned by customers were often lower due to suboptimal shares.

The cause of the problem is CPU-saving code that was added in 2017, before we parallelized the system. The code only calculates work to be sent to miners the first time a miner is assigned after a new block arrives for a coin. That worked well for years, but when merge-mined coins started to dominate scrypt profitability, the code would not recalculate the work in the case that miners were assigned to digibyte because a new block arrived, then a new dogecoin block arrived, and then the digibyte block was found and it was time to go back to litecoins. For the remaining time until the next litecoin block occurred, customers would be mining the current litecoin block along with the dogecoin block that was current when at the time of the litecoin block's arrival.

We temporarily resolved the issue by simply recalculating every single job and tested it by restarting the mining servers. There does not seem to be a significant increase in CPU load, so for now, we'll leave the code as-is until we can implement future performance enhancements that don't rely on that inaccurate assumption.

The average number of suboptimal shares due to dogecoin stales declined from 16% to 5% for scrypt - although the actual number of shares reported as suboptimal may appear higher in the dashboard because other merge-mined coins may still be stale. The profitability increase is around 8% for scrypt, and 1% for SHA-256.

Re: Significant increase in scrypt profitability

Posted: Thu Jul 15, 2021 2:52 pm
by afkluckky
I knew something was up but I couldn't figure it out. Thanks for taking care of that you guys are doing a great job. On a side note pplns with litecoin has been a great hybrid of fpps from merge and luck based from PPLNS. Wouldnt mind seeing more info on PPLNS such as current active hashrate and last block date. But if it's not there to prevent pool hoppers then nevermind :)

Re: Significant increase in scrypt profitability

Posted: Thu Jul 15, 2021 3:23 pm
by Steve Sokolowski
afkluckky wrote: Thu Jul 15, 2021 2:52 pm I knew something was up but I couldn't figure it out. Thanks for taking care of that you guys are doing a great job. On a side note pplns with litecoin has been a great hybrid of fpps from merge and luck based from PPLNS. Wouldnt mind seeing more info on PPLNS such as current active hashrate and last block date. But if it's not there to prevent pool hoppers then nevermind :)
No, there's no reason it's not included other than that there hasn't been enough manpower until now to add it.

If you could submit a support ticket with a detailed description of what you want to be added, I will assign it to Michael so that he can work on it when he starts on August 10. This feature actually seems like a great way to be trained, because it's simple, doesn't involve detailed knowledge of the system, and is a new feature rather than a bug. I really hope you submit that ticket.

Re: Significant increase in scrypt profitability

Posted: Fri Jul 16, 2021 12:40 am
by afkluckky
No problem I know the value of a good training opportunity! I will create a ticket.