An open API service indexing awesome lists of open source software.

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.

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 .
```