Skip to content

stablemarkk/rpow_cli_miner

Repository files navigation

rpow_cli_miner

Native C/OpenCL RPOW miner with CPU and GPU backends, up to 700x faster than the website and 35x faster than CPU mining.

Features

  • Browserless CLI flow for RPOW backend/API
  • Native CPU miner in C
  • Native GPU miner in C with OpenCL
  • Node fallback miner
  • Session persistence with local state files
  • Retry handling for transient API/network failures
  • Portable Windows bundle with no npm install

Included engines

  • --engine node
  • --engine native
  • --engine gpu

Quick start

node rpow-cli.js login --email you@example.com --state .rpow-a.json
node rpow-cli.js complete-login --link "https://..." --state .rpow-a.json
node rpow-cli.js mine --count 1000 --engine gpu --state .rpow-a.json

Windows GPU setup

  1. Install Node.js 18+ and confirm it works:
node -v
  1. Make sure your GPU driver is installed with OpenCL support.
  • NVIDIA: standard GeForce or Studio driver is usually enough.
  • AMD: install the normal Adrenalin driver.
  1. Build the GPU miner:
.\build-gpu.ps1
  1. Request a magic link:
node rpow-cli.js login --email you@example.com --state .rpow-a.json
  1. Complete login with the link from your email:
node rpow-cli.js complete-login --link "https://..." --state .rpow-a.json
  1. Start GPU mining:
node rpow-cli.js mine --count 1000 --engine gpu --state .rpow-a.json
  1. Optional tuning example for stronger GPUs:
node rpow-cli.js mine --count 1000 --engine gpu --state .rpow-a.json --workers 16 --gpu-batch 2097152 --gpu-local-size 256

If the GPU binary does not start, test it directly:

.\rpow-gpu-miner.exe --prefix 00 --difficulty 1 --batch-size 1024 --local-size 64

If GPU mining is unavailable, use CPU fallback:

node rpow-cli.js mine --count 1000 --engine native --workers 8 --state .rpow-a.json

GPU example

node rpow-cli.js mine --count 1000 --engine gpu --state .rpow-a.json --workers 16 --gpu-batch 2097152 --gpu-local-size 256

CPU example

node rpow-cli.js mine --count 1000 --engine native --workers 12 --state .rpow-a.json

Files

  • rpow-cli.js - CLI orchestrator
  • rpow-native-miner.c / rpow-native-miner.exe - native CPU miner
  • rpow-gpu-miner.c / rpow-gpu-miner.exe - native GPU miner
  • rpow-miner-worker.js - Node fallback worker
  • index.js - frontend bundle used for API discovery

See rpow-cli.README.md, INSTALL-OTHER-PC.md, and INSTALL-GPU-OTHER-PC.md for more usage details.

About

RPOW2 CLI minter with native C proof-of-work, designed to be significantly faster than browser JavaScript mining

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages