Skip to content

Instantly share code, notes, and snippets.

@fjahr fjahr/
Last active Jul 7, 2019

What would you like to do?
Solo CPU Mining on MacOS using BFG Miner

BFG Miner project page:


Bitcoin needs to be installed. Make sure dependencies, xcode etc. are installed: (if you built Bitcoin on the same machine you should be fine).

Build bfgminer

  $ git clone
  $ cd bfgminer
  $ ./
  $ ./configure --enable-cpumining
  $ make


First start bitcoind

  $ bitcoind --testnet

Then start the miner from the build

  $ ./bfgminer -o http://localhost:18332 -u USERNAME -p PASSWORD --generate-to YOURBITCOINADDRESS --coinbase-sig "testnet > bcash" --cpu-threads 1 -S cpu:auto


Here is an easily digestable explanation of the interface:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.