@echo off
title DankMiner v1.4.0 - XMR / Monero (RandomX rx/0)
echo ======================================================
echo   DankMiner v1.4.0 - XMR / Monero (RandomX rx/0)
echo   CPU mining (Monero is consensus-CPU; no GPU acceleration)
echo ======================================================
echo.
echo   Algorithm: RandomX rx/0 (tevador/RandomX v1.2.1, vendored)
echo   Default pool: 1miner.net:3333
echo   Default mode: full memory (~2080 MiB) - max hashrate
echo   Dev fee: 2%% (rotates briefly to 1miner.net every 30 min)
echo.
echo   Set DANKMINER_XMR_LIGHT=1 below for low-RAM rigs (~256 MiB, ~10x slower)
echo.

REM Optional: uncomment for low-RAM mode (256 MiB instead of 2080 MiB)
REM set DANKMINER_XMR_LIGHT=1

REM Optional: enforce W^X on JIT pages (~1%% slower; useful on hardened OSes)
REM set DANKMINER_XMR_SECURE=1

REM --cpu-threads N: tune to (physical cores - 1) for typical rigs.
REM RandomX is L3-bound; one thread per ~2 MB of L3 is the rule of thumb.
dankminer.exe -a xmr -w YOUR_XMR_ADDRESS -p stratum+tcp://1miner.net:3333 --worker rig1 --cpu-threads 14
pause
