RHASH-CPU 1.15 FOR WINDOWS
==========================

Two programs, keep them in the same folder (for example C:\rhash-cpu):

  rhash-cpu-gui.exe   the app: double-click it.
  rhash-cpu.exe       the miner itself (command line). The app runs it in the background.

Windows 10 or 11, 64-bit, a CPU with AVX2 (Intel Haswell / AMD Ryzen or newer).


FIRST START
-----------
1. Windows Defender / SmartScreen may warn about or block the files. Mining software is often
   flagged even when it is honest. Allow it, or add an exclusion for the folder:
   Windows Security > Virus & threat protection > Manage settings > Exclusions > Add > Folder.
   Rhash-CPU never hides that it is a miner.
2. Open rhash-cpu-gui.exe and click "Add a pool": a name, the algorithm, the pool address
   (host:port), your wallet address. Tick TLS for port 443 pools. "Test" checks the address.
3. Click "Start mining". If the pool can't be reached, the app says why (for example a typo in
   the address) and offers "Edit pool...".


THE APP
-------
  Pool menu (the bar under the title)   switch pools, add/edit pools, or run an offline Benchmark.
  Pause / Stop                          pause keeps everything ready (RandomX restarts instantly).
  Full power / Eco                      limit how hard each thread works: 90, 75, 50 or 25 %.
                                        Quieter fans, cooler laptop, applied instantly.
  Settings                              tabs: Performance, Smart pause, Startup (all options start off).
  Live log                              every share (submitted / accepted / rejected), connection
                                        messages and errors. Filters, Copy, Save. "Pool traffic"
                                        also shows the raw messages to and from the pool.
                                        The LOG bar at the bottom shows the newest line.

Smart pause (the panel at the bottom right, one click each):
  Mine only when I'm away       pauses while you use the PC; mines after N minutes idle.
  Pause for full-screen apps    games, videos, presentations.
  Pause on battery              laptops only mine when plugged in.

Minimizing puts the app in the tray (the icon next to the clock shows the hashrate).
Closing the window stops mining. "Start with Windows" in Settings mines in the background
from sign-in.


LARGE PAGES (RandomX / Monero: up to ~50 % faster)
--------------------------------------------------
When the app shows "Large pages: OFF", click "Enable (admin)...", say Yes to the Windows prompt,
then SIGN OUT OF WINDOWS AND BACK IN (or restart). Done once; no admin needed afterwards.
By hand instead: secpol.msc > Local Policies > User Rights Assignment > Lock pages in memory >
add your user, then sign out and back in. (Windows Home has no secpol.msc; use the button.)
Large pages come from whole 2 MB blocks of free RAM. After a PC has run a while its memory is
chopped up, and Windows may only find some of them: the app then shows e.g. "Large pages: 72% -
RAM fragmented" (the rest of the dataset uses normal pages, a little slower). To get more:
click "Free RAM (admin)..." (the miner stops, Windows empties its standby memory, the miner starts
again).
Each mining thread gets its own 2 MB block first (most of the gain per MB), then the dataset
takes what is left. Settings > Large pages: "Threads only" leaves the dataset in normal pages,
"Off" turns large pages off (same as --large-pages threads / --large-pages off).
Command line: run as Administrator and the miner frees RAM by itself when needed
(--no-free-memory turns that off), or run "rhash-cpu.exe --free-memory" as Administrator first.
Windows has no 1 GB pages, and the MSR tweak is not available on Windows, so
RandomX is a little slower than the same PC on Linux.
Administrator rights are NOT needed to mine: as a normal user everything works, only RandomX is
slower until large pages are turned on once (above).


FILES
-----
  pools.json   your pools (logins). Next to the programs; if the folder is not writable
               (C:\Program Files) it is %APPDATA%\rhash-cpu\pools.json instead.
  gui.json     app settings, same place.
Both programs share pools.json, so pools added in the app work on the command line too.


COMMAND LINE
------------
  rhash-cpu.exe -a rx/0 -o pool.hashvault.pro:443 --tls -u WALLET -p x --menu
  rhash-cpu.exe -a ghostrider --bench 60
  rhash-cpu.exe --help
--menu works best in Windows Terminal.


DEV FEE
-------
Dev fee 0.5%: a short round about every 70 minutes mines to the author's relay
(donate.russ-office.com, port 7777 for RandomX, 8888 for the other algorithms).
It is logged each time ("running dev fee round").

A license key removes the dev fee. Enter it in the GUI (Settings > License > Activate)
or on the command line:
  rhash-cpu.exe --key RHX1-XXXXXX-...      check and save the key
  rhash-cpu.exe --key-status               show the saved key
  rhash-cpu.exe --remove-key               forget it
One key works on any number of PCs. It is checked offline (no internet needed).
