Skip to content

Instantly share code, notes, and snippets.

@fjahr
Last active June 10, 2023 17:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fjahr/608a4b106fa68a04c6eacba9e1f1536c to your computer and use it in GitHub Desktop.
Save fjahr/608a4b106fa68a04c6eacba9e1f1536c to your computer and use it in GitHub Desktop.
Solo CPU Mining on MacOS using BFG Miner

BFG Miner project page: https://github.com/luke-jr/bfgminer

Preparation

Bitcoin needs to be installed. Make sure dependencies, xcode etc. are installed: https://gist.github.com/luke-jr/7539234 (if you built Bitcoin on the same machine you should be fine).

Build bfgminer

  $ git clone git@github.com:luke-jr/bfgminer.git
  $ cd bfgminer
  $ ./autogen.sh
  $ ./configure --enable-cpumining
  $ make

Run

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

Interface

Here is an easily digestable explanation of the interface: https://www.youtube.com/watch?v=FSjhwsuQTxM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment