https://github.com/cyberchainxyz/xminer
Open source fphash miner in go.
https://github.com/cyberchainxyz/xminer
blockchain cyberchain golang gpu-mining
Last synced: 5 months ago
JSON representation
Open source fphash miner in go.
- Host: GitHub
- URL: https://github.com/cyberchainxyz/xminer
- Owner: CyberChainXyz
- License: gpl-3.0
- Created: 2024-03-21T19:15:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2025-12-15T12:14:18.000Z (6 months ago)
- Last Synced: 2025-12-18T12:23:46.669Z (6 months ago)
- Topics: blockchain, cyberchain, golang, gpu-mining
- Language: C
- Homepage: https://cyberchain.xyz/
- Size: 90.8 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xMiner
Open source [fphash](https://github.com/CyberChainXyz/fphash-go) miner in Go with [stratum-jsonrpc2.0-ws](https://github.com/CyberChainXyz/stratum-jsonrpc2-ws) protocol.
The OpenCL kernel code originates from [xmr-stak](https://github.com/fireice-uk/xmr-stak/tree/master/xmrstak/backend).
## Download
You can download the pre-built binaries from our [GitHub Releases](https://github.com/CyberChainXyz/xMiner/releases) page. Choose the appropriate version for your operating system.
## Mining Tutorials
Check our [Mining Discussion Forum](https://github.com/orgs/CyberChainXyz/discussions/categories/mining) for detailed tutorials on:
- Windows Solo Mining
- HiveOS Mining Setup
- And more mining guides
## Performance Testing
```bash
./xMiner -mock -all
```
## Show OpenCL devices informations
```bash
./xMiner -info -all
```
This will display all available OpenCL devices with their indices:
```
Available OpenCL devices:
[1] NVIDIA GeForce RTX 3080 (Vendor: NVIDIA Corporation)
[2] AMD Radeon RX 6800 (Vendor: Advanced Micro Devices)
...
```
## Device Selection
You can choose specific devices to mine with using the `-devices` or `-d` flag:
```bash
# Use specific devices (e.g., devices 1 and 3)
./xMiner -devices "1,3"
# or use the short option
./xMiner -d 1,3
# Use all OpenCL devices
./xMiner -all
# Use AMD and NVIDIA GPU devices (default behavior)
./xMiner
```
## Solo mining
**Run a [CyberChain](https://github.com/CyberChainXyz/go-cyberchain) client with mining feature enabled**
```
./ccx -ws -mine -miner.etherbase=0x123...fff
```
Replace 0x123...fff with your own address.
**Run the miner**
```bash
./xMiner
```
The default pool address is ws://127.0.0.1:8546.
## Pool Mining
```bash
./xMiner -user=username -pass=password -pool=wss://pool-address.com:port
```
Replace `user, pass, pool` with your actual values provided by the mining pool.
## Proxy
If you need to connect to the pool through an http/socks5 proxy, use `-proxy`.
```bash http proxy
./xMiner -pool=wss://pool-address.com:port -user=username -pass=password -proxy=http://127.0.0.1:1080
```
```bash socks5 proxy
./xMiner -pool=wss://pool-address.com:port -user=username -pass=password -proxy=socks5://127.0.0.1:1080
```
## Compile from source
**Requirements**
linux
```bash
sudo apt install ocl-icd-opencl-dev opencl-headers
```
**Clone the repository and build the miner**
```bash
git clone https://github.com/CyberChainXyz/xMiner
cd xMiner
go build .
```