Mining NXS with NexusMiner: Difference between revisions
m Added version # |
m Corrected Note |
||
| (One intermediate revision by the same user not shown) | |||
| Line 16: | Line 16: | ||
'''Linux/Other Users:''' | '''Linux/Other Users:''' | ||
* Clone the repository: | * Clone the repository: | ||
< | <pre> | ||
git clone https://github.com/Nexusoft/NexusMiner.git | git clone https://github.com/Nexusoft/NexusMiner.git | ||
cd NexusMiner | cd NexusMiner | ||
</ | </pre> | ||
* Build using CMake (see section 6). | * Build using CMake (see section 6). | ||
| Line 29: | Line 29: | ||
; Pool Mining on the Hash Channel (Mainnet Only) | ; Pool Mining on the Hash Channel (Mainnet Only) | ||
< | <pre> | ||
{ | { | ||
"version" : 1, | "version" : 1, | ||
| Line 49: | Line 49: | ||
] | ] | ||
} | } | ||
</ | </pre> | ||
; Solo Mining on the Prime or Hash Channel (Mainnet) | ; Solo Mining on the Prime or Hash Channel (Mainnet) | ||
< | <pre"> | ||
{ | { | ||
"version" : 1, | "version" : 1, | ||
| Line 67: | Line 67: | ||
] | ] | ||
} | } | ||
</ | </pre> | ||
; Solo Mining on the Prime or Hash Channel (Testnet) | ; Solo Mining on the Prime or Hash Channel (Testnet) | ||
< | <pre> | ||
{ | { | ||
"version" : 1, | "version" : 1, | ||
| Line 85: | Line 85: | ||
] | ] | ||
} | } | ||
</ | </pre> | ||
'''Note: Do NOT use the <code>pool</code> section on testnet. Testnet mining is solo-only; pool mining is not supported or useful.'''<br/>'''CPU mining is no longer competitive on the main Nexus blockchain and is only recommended for private blockchains or testnets. For mainnet, use GPUs (or FPGAs) for best results.''' | |||
* '''wallet_ip''': For solo mining, use <code>127.0.0.1</code> (or your core’s IP); for pool mining (mainnet), set to the pool address. | * '''wallet_ip''': For solo mining, use <code>127.0.0.1</code> (or your core’s IP); for pool mining (mainnet), set to the pool address. | ||
| Line 99: | Line 99: | ||
To enable detailed logging and statistics, add the following to your <code>miner.conf</code>: | To enable detailed logging and statistics, add the following to your <code>miner.conf</code>: | ||
< | <pre> | ||
"logfile" : "miner.log", | "logfile" : "miner.log", | ||
"log_level" : 2, | "log_level" : 2, | ||
| Line 115: | Line 115: | ||
} | } | ||
], | ], | ||
< | <pre> | ||
---- | ---- | ||
| Line 125: | Line 125: | ||
* Unlock your wallet for mining. | * Unlock your wallet for mining. | ||
* Edit <code>nexus.conf</code> to enable mining: | * Edit <code>nexus.conf</code> to enable mining: | ||
< | <pre> | ||
mining=1 | mining=1 | ||
</ | </pre> | ||
* If mining '''locally (same machine)''': nothing else is required. | * If mining '''locally (same machine)''': nothing else is required. | ||
* If mining '''over LAN''': add to <code>nexus.conf</code>: | * If mining '''over LAN''': add to <code>nexus.conf</code>: | ||
< | <pre> | ||
llpallowip=<miner_ip>:<port> | llpallowip=<miner_ip>:<port> | ||
</ | </pre> | ||
** On '''mainnet''', the default port is <code>9325</code>. | ** On '''mainnet''', the default port is <code>9325</code>. | ||
** On '''testnet''', the default port is <code>8325</code>. | ** On '''testnet''', the default port is <code>8325</code>. | ||
| Line 149: | Line 149: | ||
'''Windows:''' | '''Windows:''' | ||
* Double-click <code>NexusMiner.exe</code> or run from the command line: | * Double-click <code>NexusMiner.exe</code> or run from the command line: | ||
< | <pre> | ||
NexusMiner.exe | NexusMiner.exe | ||
</ | </pre> | ||
'''Linux:''' | '''Linux:''' | ||
* After building, run: | * After building, run: | ||
< | <pre> | ||
./NexusMiner | ./NexusMiner | ||
</syntaxhighlight> | </syntaxhighlight> | ||
| Line 175: | Line 175: | ||
Example configuration for logging: | Example configuration for logging: | ||
< | <pre> | ||
"logfile" : "miner.log", | "logfile" : "miner.log", | ||
"log_level" : 2, | "log_level" : 2, | ||
| Line 191: | Line 191: | ||
} | } | ||
] | ] | ||
</ | </pre> | ||
---- | ---- | ||
| Line 200: | Line 200: | ||
* Requires CMake, C++ compiler, and optionally CUDA Toolkit (for Nvidia GPUs). | * Requires CMake, C++ compiler, and optionally CUDA Toolkit (for Nvidia GPUs). | ||
* From the repo directory: | * From the repo directory: | ||
< | <pre> | ||
mkdir build | mkdir build | ||
cd build | cd build | ||
cmake .. -DWITH_GPU_CUDA=ON # Enable Nvidia GPU mining | cmake .. -DWITH_GPU_CUDA=ON # Enable Nvidia GPU mining | ||
make | make | ||
</ | </pre> | ||
* See repository README for more advanced build options and FPGA instructions. | * See repository README for more advanced build options and FPGA instructions. | ||
Latest revision as of 11:02, 2 September 2025
Mining NXS with NexusMiner: Step-by-Step Guide
version 9
Welcome to the NexusMiner documentation! This guide will help you get started mining Nexus (NXS) using NexusMiner on supported hardware (FPGA, GPU, CPU). Note: The Prime pool is no longer maintained. You can still mine solo on the PRIME channel, or use the pool for HASH channel mining (mainnet only).
1. Downloading NexusMiner
Windows Users:
- Visit the NexusMiner Releases page.
- Download the latest
NexusMiner.exeand the defaultminer.conf. - No build is required; you can run the executable directly.
Linux/Other Users:
- Clone the repository:
git clone https://github.com/Nexusoft/NexusMiner.git cd NexusMiner
- Build using CMake (see section 6).
2. Setting Up miner.conf
Edit miner.conf (provided in releases or repo root) for your setup. Below are minimal examples:
- Pool Mining on the Hash Channel (Mainnet Only)
{
"version" : 1,
"wallet_ip" : "hashpool.nexus.io",
"port" : 50000,
"mining_mode" : "HASH",
"pool" : {
"username" : "YOUR_NXS_ADDRESS",
"display_name" : "YOUR_DISPLAY_NAME",
"use_deprecated" : false
},
"workers" : [
{
"worker" : {
"id" : "myWorker0",
"mode" : { "hardware" : "gpu", "device": 0 }
}
}
]
}
- Solo Mining on the Prime or Hash Channel (Mainnet)
<pre"> {
"version" : 1,
"wallet_ip" : "127.0.0.1",
"port" : 9325,
"mining_mode" : "PRIME", // or "HASH"
"workers" : [
{
"worker" : {
"id" : "myWorker0",
"mode" : { "hardware" : "gpu", "device": 0 }
}
}
]
}
- Solo Mining on the Prime or Hash Channel (Testnet)
{
"version" : 1,
"wallet_ip" : "127.0.0.1",
"port" : 8325,
"mining_mode" : "PRIME", // or "HASH"
"workers" : [
{
"worker" : {
"id" : "myWorker0",
"mode" : { "hardware" : "gpu", "device": 0 }
}
}
]
}
Note: Do NOT use the pool section on testnet. Testnet mining is solo-only; pool mining is not supported or useful.
CPU mining is no longer competitive on the main Nexus blockchain and is only recommended for private blockchains or testnets. For mainnet, use GPUs (or FPGAs) for best results.
- wallet_ip: For solo mining, use
127.0.0.1(or your core’s IP); for pool mining (mainnet), set to the pool address. - port:
- Use 9325 for solo mining on mainnet.
- Use 8325 for solo mining on testnet.
- Use 50000 for hashpool (mainnet only).
- username: Enter your Nexus wallet address to receive mining rewards (pool/mainnet only).
- workers: Configure for your hardware.
Example: Enabling Logging
To enable detailed logging and statistics, add the following to your miner.conf:
"logfile" : "miner.log",
"log_level" : 2,
"stats_printers" : [
{
"stats_printer" : {
"mode" : "console"
}
},
{
"stats_printer" : {
"mode" : "file",
"filename" : "stats.log"
}
}
],
<pre>
----
== 3. Setting Up Your Nexus Wallet or Headless Core ==
=== For '''Solo Mining (Prime or Hash Channel):''' ===
* Use Nexus Core version 5.1.5 or later.
* Unlock your wallet for mining.
* Edit <code>nexus.conf</code> to enable mining:
<pre>
mining=1
- If mining locally (same machine): nothing else is required.
- If mining over LAN: add to
nexus.conf:
llpallowip=<miner_ip>:<port>
- On mainnet, the default port is
9325. - On testnet, the default port is
8325.
- On mainnet, the default port is
Example: llpallowip=192.168.0.100:9325
- Ensure the port in
miner.confmatches the port your wallet/core is listening on.
For Pool Mining (Hash Channel, Mainnet Only):
- No special changes are required to your wallet or
nexus.conf. - Just ensure the
usernamefield inminer.confis set to your Nexus wallet address.
4. Running NexusMiner
Windows:
- Double-click
NexusMiner.exeor run from the command line:
NexusMiner.exe
Linux:
- After building, run:
./NexusMiner
</syntaxhighlight>
'''Command-line Options:'''
* Specify a config: <code>./NexusMiner my_miner.conf</code>
* Check config only: <code>./NexusMiner my_miner.conf -c</code>
* Show version: <code>./NexusMiner -v</code>
----
== 5. Monitoring and Logging ==
* Logs are written to <code>miner.log</code> (path and level set in <code>miner.conf</code> via <code>"logfile"</code> and <code>"log_level"</code>).
* Additional statistics can be printed to console or files as configured under <code>stats_printers</code>.
* '''Important:'''
'''Every time you run NexusMiner, it will overwrite the contents of both <code>miner.log</code> and any file specified for statistics logging (such as <code>stats.log</code>).'''
If you want to preserve logs from previous runs, be sure to copy or rename them before starting the miner again.
Example configuration for logging:
<pre>
"logfile" : "miner.log",
"log_level" : 2,
"stats_printers" : [
{
"stats_printer" : {
"mode" : "console"
}
},
{
"stats_printer" : {
"mode" : "file",
"filename" : "stats.log"
}
}
]
6. Building NexusMiner (Linux/Advanced Users)
Build options are available if you want to compile from source:
- Requires CMake, C++ compiler, and optionally CUDA Toolkit (for Nvidia GPUs).
- From the repo directory:
mkdir build cd build cmake .. -DWITH_GPU_CUDA=ON # Enable Nvidia GPU mining make
- See repository README for more advanced build options and FPGA instructions.
7. Additional Resources
- NexusMiner GitHub Repository
- Sample miner.conf
- Hash Pool (mainnet only)
- Nexus mining topic on Telegram (Join the Waiting Room to request access.)
Troubleshooting
- Ensure your wallet address is correct in
miner.conf. - For solo mining, make sure your wallet/core is running, unlocked, and accessible with the correct port and IP.
- Refer to logs (
miner.log) for error messages.
Happy Mining!