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
  • Environment
  • Requirements
  • Components
  • Steps
  • TODOs
  1. BCH Testnet Environment

BCH Testnet Environment

In order to test the BCH network before the hardforks it's useful to have a controlled enviroment to replicate the network behavior.

PreviousHomeNextBitcoinABC (bitcore patches)

Last updated 6 years ago

Environment

The environment consists of a bitcoin-abc + bitcore patches, a blockexplorer, an insight-api, a mining pool and a miner.

After following the guide all the environment components will be running on your system.

Requirements

  • A Debian PC or VM. (The guide will use Debian commands to install the dependencies. This could run on any system that supports ABC, but you'll have to adapt the installation instructions)

  • Al least 30 Gb of free space to store the testnet blockchain.

Components

  • The system will use a Bitcoin ABC + bitcore patches to download the blockchain. This bitcore patches are new indexes that allow to request detailed information to the blockchain via RPC.

  • Bitcore will request the bitcoin node the blockchain information. With this information the insight (blockcexplorer) and insight-api can be used.

  • In order to mine the chain a mining pool will organize all the miners and will generate blocks using the GetBlockTemplate call to a bitcoin node.

  • When the mining pool is ready, a CPU Miner is used to mine some blocks. Testnet difficulty is reseted every 20min without blocks, so even slow systems can mine some blocks.

Steps

  1. .

  2. .

  3. .

  4. .

  5. .

TODOs

Missing features that I'll add in the future.

  • Testnet Faucet installation guide.

  • Bitcore Wallet Services installation guide.

  • Copay/Bitpay installation guide.

Install and configure BitcoinABC + bitcore
Install and configure bitcore + insight + insight-api
Install and configure NOMP (mining pool)
Install and configure cpuminer
Make your own fork