tenglvjun / open-cfxmine

Conflux miner

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cfxmine

A C++ miner for Conflux PoW.

For detailed mining instruction, please refer to Conflux Tethys GPU Mining Instruction.

Build

cfxmine depends on CMake (version 3.18 or higher), and Boost (version 1.65.1).

On Linux, run the following command in a shell to build.

git submodule update --init
cmake -DCMAKE_BUILD_TYPE=Release -B build
cmake --build build

On Windows, alternatively run:

git submodule update --init
cmake -A x64 -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release

Run

cfxmine works with Conflux-Rust together. In order to run cfxmine, here are the steps:

  1. Start Conflux-Rust with stratum enabled. In the configuration file, set mining_type = "stratum". By default, it will open 32525 port at the public address of the client. You can also change the port in the configuration file.

  2. Run ./build/bin/cfxmine --addr A.B.C.D --port 32525 --gpu, where A.B.C.D is the public ip address of the client.

About

Conflux miner


Languages

Language:Cuda 53.3%Language:C++ 44.9%Language:C 0.9%Language:CMake 0.9%