# OVNEX Mining Guide ## XMRig ile OVNX Madenciliği / Mining OVNX with XMRig --- ## Prerequisites / Ön Koşullar - A CPU (any modern Intel/AMD desktop or laptop) - Windows 10/11, Ubuntu 20.04+, or macOS 12+ - An OVNEX wallet address (generate with `ovnex-wallet-cli` or the GUI wallet) - Internet connection You do **not** need a GPU, ASIC, or any special hardware. OVNEX uses RandomX, which is designed for CPUs. --- ## Step 1: Download XMRig XMRig is the recommended miner for OVNEX (RandomX algorithm). **Download:** https://github.com/xmrig/xmrig/releases | Platform | File to Download | |---|---| | Windows 64-bit | `xmrig-X.X.X-msvc-win64.zip` | | Linux 64-bit | `xmrig-X.X.X-linux-static-x64.tar.gz` | | macOS | `xmrig-X.X.X-macos-arm64.tar.gz` (Apple Silicon) or `x64` | Extract the archive to a folder (e.g., `C:\xmrig\` on Windows). --- ## Step 2: Get an OVNEX Wallet Address Before mining, you need an OVNEX wallet address to receive rewards. **Option A — CLI Wallet (once OVNEX is released):** ```bash ./ovnex-wallet-cli --generate-new-wallet my-wallet ``` Follow the prompts. Save your 25-word seed phrase in a secure location — it is the only way to recover your wallet. **Option B — Solo Mining to Node Wallet:** If you are running your own `ovnexd` node, you can mine directly to the node's integrated wallet. --- ## Step 3A: Pool Mining (Recommended for Most Users) Pool mining is recommended for consistent rewards. Connect to an OVNEX mining pool using XMRig. ### Create XMRig Config File Create `config.json` in your XMRig folder: ```json { "autosave": true, "cpu": { "enabled": true, "huge-pages": true, "hw-aes": null, "priority": 2, "memory-pool": false, "yield": true, "max-threads-hint": 75 }, "pools": [ { "url": "pool.ovnex.network:3333", "user": "YOUR_OVNX_WALLET_ADDRESS", "pass": "your_miner_name", "keepalive": true, "tls": false, "algo": "rx/0" } ], "randomx": { "init": -1, "init-avx2": -1, "mode": "auto", "1gb-pages": false, "rdmsr": true, "wrmsr": true, "cache_qos": false, "numa": true, "scratchpad_prefetch_mode": 1 } } ``` **Replace `YOUR_OVNX_WALLET_ADDRESS`** with your actual OVNEX wallet address. **Pool URL:** Replace `pool.ovnex.network:3333` with the actual pool address when the network launches. Pool information will be listed at https://ovnex.io/mining ### Start Mining (Windows) ```cmd cd C:\xmrig xmrig.exe ``` Or double-click `xmrig.exe` — it will auto-load `config.json` from the same folder. ### Start Mining (Linux/macOS) ```bash cd ~/xmrig ./xmrig ``` --- ## Step 3B: Solo Mining Solo mining connects your miner directly to your own OVNEX full node. You receive 100% of the block reward (minus the protocol-level 5% dev fee which is automatic). ### Requirements - A running `ovnexd` node (see `NODE_SETUP.md`) - The node must be fully synced ### XMRig Config for Solo Mining ```json { "autosave": true, "cpu": { "enabled": true, "huge-pages": true, "max-threads-hint": 75 }, "pools": [ { "url": "127.0.0.1:28081", "user": "YOUR_OVNX_WALLET_ADDRESS", "pass": "x", "keepalive": true, "tls": false, "algo": "rx/0", "daemon": true } ] } ``` The `"daemon": true` flag tells XMRig to use the daemon RPC mode (direct solo mining) instead of the stratum pool protocol. ### Start Solo Mining First, start your node: ```bash ./ovnexd --detach ``` Then start XMRig: ```bash ./xmrig ``` --- ## Step 4: Performance Tuning ### Enable Huge Pages (Linux — Strongly Recommended) Huge pages significantly improve RandomX performance (up to 1.5–2x hashrate). ```bash # Temporary (until reboot): sudo sysctl -w vm.nr_hugepages=1280 # Permanent: echo "vm.nr_hugepages=1280" | sudo tee -a /etc/sysctl.conf sudo sysctl -p ``` ### Windows Huge Pages XMRig will attempt to enable huge pages automatically on Windows. Run XMRig as Administrator for this to work. ### Thread Count XMRig auto-detects the optimal thread count. The `max-threads-hint` value (0–100) lets you limit CPU usage: - `100` = use all threads (maximum hashrate, full CPU load) - `75` = use ~75% of threads (recommended — leaves headroom for the OS) - `50` = half threads (for gaming/working while mining) ### CPU Priority `"priority": 2` is a balanced default. Range: 0 (idle) to 5 (real-time). Do not set above 3 on Windows — it can cause system instability. --- ## Monitoring Your Miner XMRig displays real-time stats in the terminal: ``` [2026-11-22 14:00:00.000] miner speed 10s/60s/15m 1234.5 1230.1 1228.9 H/s [2026-11-22 14:00:00.000] cpu accepted (1/0) diff 50000 (100 ms) ``` - **H/s** — Hashrate (hashes per second). Higher = faster mining. - **accepted** — Shares accepted by the pool (count / rejected count). - **diff** — Current difficulty target. --- ## Troubleshooting | Problem | Solution | |---|---| | "No connection" | Check pool URL and port; check firewall | | Low hashrate | Enable huge pages; run as Administrator (Windows) | | High rejected shares | Network latency to pool; try a geographically closer pool | | CPU at 100% / system slow | Reduce `max-threads-hint` to 50–70 | | "RANDOMX_FLAG_LARGE_PAGES failed" | Enable huge pages (see above) | --- ## Important Notes ### Protocol-Level Dev Fee OVNEX has a **5% developer fee built into the blockchain protocol**. This is not an XMRig fee — it is enforced at the consensus level. Every block reward automatically allocates 5% to the developer fund address. You receive 95% of each block reward. This cannot be disabled or bypassed. ### Pool Fees Mining pools charge an additional fee (typically 1–2%) on top of the protocol dev fee. Check your pool's fee schedule. ### Solo Mining Variance With a low hashrate (e.g., 1,000 H/s) and a large network, solo mining can take months between block finds. Pool mining provides predictable daily payouts. --- *OVNEX Mining Guide v1.0 — 2026* *Website: https://ovnex.io/ | Email: info@ovnex.io* *GitHub: https://github.com/batikentdurna/ovnex-protocol-ovnex-core-*