@echo off
setlocal DisableDelayedExpansion
title Mouillay GPU Miner
rem Edit the pool and wallet.worker below.
rem PEARL only:    YOUR_PEARL_ADDRESS.rig1
rem PEARL + NOCK:  YOUR_PEARL_ADDRESS+YOUR_NOCK_ADDRESS.rig1
rem Merge mining requires a compatible pool, such as poolmouillay.com:3360.
rem Keep the + between the two addresses and the dot before the worker name.
set "POOL=poolmouillay.com:3360"
set "WALLET_WORKER=prl1pt8t3tffncrwlfgp28mfh2kljgk29g480e8fzw49k0q7rc9lwc06s79c60j.mouillay"
rem Requested share difficulty per GPU worker. 0 = pool default.
rem Compatible pools only; the pool controls the actual share target.
set "DIFFICULTY=0"

"%~dp0MouillayMiner.exe" --pool "%POOL%" --user "%WALLET_WORKER%" --difficulty "%DIFFICULTY%" %*
set "MINER_EXIT=%ERRORLEVEL%"
echo.
echo Miner stopped. Exit code: %MINER_EXIT%
echo Press any key to close this window...
pause >nul
exit /b %MINER_EXIT%
