Post
Topic
Board Service Announcements
Re: [ANN] NiceHash.com - innovative professional cryptocurrency cloud mining service
by
comeonalready
on 27/04/2014, 04:38:44 UTC
Whoever is capable of compiling own sgminer, please test this version: https://github.com/bitbandi/sgminer/

It contains two fixes:
- idlebug fix
- support for extranonce subscription - no more reconnects when switching orders -> your hashrate on NiceHash will be higher

I tried your fixed version, and after ~8 hours it started acting up.
Then, I added in 'phzi's pool->idle = true; fix as well into the code - and it still started screwing up after a while.

I don't think the idle bug is fixed.
I am fairly sure the idle bug is fixed, but I have heard the extranonce stuff seems possibly unstable.

If you're using the bitbandi/sgminer code, then the included fix is a bit different - https://github.com/bitbandi/sgminer/commit/77545de0e8b0d0a6e57cf518920de5e6b818e290 .  You won't want to be using pool->idle = true; AND this commit.  Closing the stratum connection like in that commit causes pool->stratum_active = pool->stratum_notify = false (but does not affect pool->idle).   I can't say if this works, as I haven't tested it myself.  But, from my read thru of the code, the program flow will be quite different then my patch, and I was marking the pool idle instead of suspending stratum for a reason.

Ah, alright.  Well that was my poor judgement just blindly adding in the pool->idle = true; in addition to the suspending pool thing.
I'll try to debug the issue further if it occurs again - the issue is that it takes so damn long to trigger Tongue

That is because neither phzi nor ebandi implemented a proper idle bug fix. They addressed the symptom but not the cause. Also, ebandi is missing an important piece of a fully backwards compatible extranonce subscription implementation.  Currently, it is unstable universally (i.e. works fine at nicehash but will break unexpectedly at other pools).  I know why that is happening too, but keep working on it though.  You'll get there eventually.