@echo off
REM SKN CRB Direct Miner v1.0.0 (connects straight to the pool - no proxy, no gateway PC needed)
REM
REM This version ALWAYS shows a console window - that's the point of it.
REM If you need NO window at all, not even a brief flash, use
REM crb-direct-miner-hidden.vbs instead (double-click that, not this .bat).
REM
REM Edit the two lines below before running:
REM   CRB_ADDRESS = YOUR OWN crb1... address (required - this PC mines for
REM                 whichever address you put here, payouts go straight to it)
REM   WORKER      = a name for this PC (optional, shows up on the pool's
REM                 miner stats page so you can tell rigs apart)
REM
REM This PC needs real internet access (it talks to cereblix.sinarlink.com
REM directly) - unlike CRB Lab Miner, there is NO gateway/proxy PC involved.
REM
REM MODE can be pplns (steady, split rewards) or solo (all-or-nothing, only
REM worth it at high hashrate) - same tradeoff as the desktop app's toggle.
REM
REM Colored console output is ON by default (green=accepted, red=rejected).

set CRB_ADDRESS=crb1YOUR_ADDRESS_HERE
set WORKER=my-pc
set THREADS=4
set MODE=pplns

set NODE_URL=https://cereblix.sinarlink.com/api
if /I "%MODE%"=="solo" set NODE_URL=https://cereblix.sinarlink.com/api/solo

echo SKN CRB Direct Miner v1.0.0
:loop
skn-crb-engine-windows-amd64.exe -node %NODE_URL% -addr %CRB_ADDRESS% -worker %WORKER% -threads %THREADS% -mode %MODE%
echo Miner exited, restarting in 5 seconds...
timeout /t 5 /nobreak > NUL
goto loop
