Genoil's ZEC Miner

If anybody’s interested I’ve wrote a little batch file which automatically restarts the miner when a miner quit (speed goes to 0.0S/s) or null shares is found. I’ve run this overnight and it seems to work well keeping the miner going and a little better than timed restarts as it checks the output every 5 seconds to see if an error has occurred.

There are two batch files, you need to run the first one which launches the second

@echo off
echo starting miner
:loop
if exist output.txt del output.txt
time /t
start /MIN nh.bat
:loop2
timeout /T 5 /NOBREAK >nul
findstr /C:"quit" /C:"null" output.txt && (
taskkill /F /IM genoil.exe
timeout /T 1 /NOBREAK >nul
echo re-starting miner
goto loop
) || (
goto loop2
)

Second batch file named nh.bat

genoil.exe -c equihash.usa.nicehash.com:3357 -u yourID.yourWORKER -p x > output.txt
echo quit >output.txt
exit

Hopefully helpful for somebody

TomDDG

1 Like