Hanchon
  • Home
  • BCH Testnet Environment
    • BCH Testnet Environment
    • BitcoinABC (bitcore patches)
    • Bitcore (insight + insight-api)
    • NOMP (mining pool)
    • CPU Miner
    • Fork the network
    • Run regtest
  • Bitprim
    • Introduction
    • Node versions
    • Requirements
    • Node installation
    • Run the node
    • Insight Installation
    • Run Insight (node + REST-API)
    • Query the insight api
  • Bitprim Node Configuration Files
    • Bitcoin Cash Testnet
    • Bitcoin Cash Mainnet
    • Bitcoin Core Testnet
    • Bitcoin Core Mainnet
    • Litecoin Testnet
    • Litecoin Mainnet
  • Bitprim Insight Configuration
    • Insight-API configuration file
  • Utils
    • Install Node Version Manager
    • Install Redis
Powered by GitBook
On this page
  • Introduction:
  • Installation
  • Requirements:
  • Clone and build:
  • Usage
  • References
  1. BCH Testnet Environment

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

PreviousNOMP (mining pool)NextFork the network

Last updated 6 years ago

CPU Miner:

https://github.com/pooler/cpuminer.git