Post
Topic
Board Mining (Altcoins)
Re: [ANN] cudaMiner & ccMiner CUDA based mining applications [Windows/Linux/MacOSX]
by
christian1980
on 24/05/2014, 22:39:38 UTC
Is there a way that ccminer will close itself if something like this happens?
If it crashes like this, only a small rate of shares will still be sent to the pool.



Thanks.
yes. modify cpu-miner.c and add this code before this string https://github.com/cbuchner1/ccminer/blob/master/cpu-miner.c#L932
Code:
if (thr_hashrates[thr_id] > 1e8){
applog(LOG_ERR, "abnormal hashes %f, exiting with code 211!", thr_hashrates[thr_id]);
exit(211);
        }

you can choose custom error Wink
I'm on windows 8.1. How do I modify the cpu-miner.c ?  Also, When it messes up  like that is it actually still mining?

I hope cbuchner1 will integrate this patch into the main releases.
If you have this error, youll loose most of your hashing power.

Thanks again, zelante.
I can confirm that this patch is working and you are able to restart ccminer in combination with a bat file if you have this error.