Post
Topic
Board Mining (Altcoins)
Re: [ANN] cudaMiner & ccMiner CUDA based mining applications [Windows/Linux/MacOSX]
by
zelante
on 21/05/2014, 17:49:56 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