CPU Miner
Mining software.
Introduction:
To mine some blocks a software that hashes is required, for this environment CPU Miner was chosen. The miner is going to be connected to a NOMP and try to mine blocks with difficulty = 1. The CPU Miner usually has not enough power to mine blocks with the normal network difficulty, so it just going to mine blocks with the minimum difficulty that are going to be valid if no other blocks were mined in an interval of 20 minutes.
Installation
Requirements:
Libcurl
sudo apt-get install libcurl4-openssl-dev
Clone and build:
git clone https://github.com/pooler/cpuminer.git
cd cpuminer
./autogen.sh
./configure CFLAGS="-O3"
make -j2
sudo make install
Usage
Connect the miner to the pool
-o: Pool location. If you are following the example leave the port = 4008 this port is the minimum difficulty.
-u: Your wallet to receive the payments.
-a: Hashing algorithm.
minerd -o stratum+tcp://127.0.0.1:4008 -u mz8DUu5atAfNEBNeQHrpdGkfWZ9vmk3Q13 -a sha256d
The configuration examples for NOMP have the payments disabled. So when you find a valid block, all the reward is for the wallet configured on the pool's bitcoin.json
file and this wallet is going to be ignored.
References
CPU Miner: https://github.com/pooler/cpuminer.git
Last updated