cfxmine
A C++ miner for Conflux PoW.
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:
-
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. -
Run
./build/bin/cfxmine --addr A.B.C.D --port 32525 --gpu
, whereA.B.C.D
is the public ip address of the client.