xMiner

command module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

README

xMiner

Open source fphash miner in Go with stratum-jsonrpc2.0-ws protocol.

The OpenCL kernel code originates from xmr-stak.

Download

You can download the pre-built binaries from our GitHub Releases page. Choose the appropriate version for your operating system.

Performance Testing

./xMiner -mock -all

Show OpenCL devices informations

./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:

# Use specific devices (e.g., devices 1 and 3)
./xMiner -devices "1,3"
# or use the short option
./xMiner -d 1,3

# Use all available devices (default behavior)
./xMiner

Solo mining

Run a CyberChain client with mining feature enabled

./ccx -ws -mine -miner.etherbase=0x123...fff

Replace 0x123...fff with your own address.

Run the miner

./xMiner

The default pool address is ws://127.0.0.1:8546.

Pool Mining

./xMiner -user=username -pass=password -pool=wss://pool-address.com:port

Replace user, pass, pool with your actual values provided by the mining pool.

Compile from source

Requirements

linux

sudo apt install ocl-icd-opencl-dev opencl-headers

Clone the repository and build the miner

git clone https://github.com/CyberChainXyz/xMiner
cd xMiner
go build .

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL