Miner for helium blockchain
$ make
$ make typecheck
$ make test
Build a miner-test image locally:
docker build -t helium:miner-test -f .buildkite/scripts/Dockerfile-xxxNN .
Note that Miner for AMD64 requires AVX support on the processor due to the erasure library.
This is a maybe up-to-date step by step on how to build Miner if you've never done it before. Results may vary depending on your host system.
This is for development purposes only and if you are interested in running a miner, please follow our guide here.
First, you'll need git. If you don't have it installed:
sudo apt-get install gitClone the git repository:
git clone https://github.com/helium/miner.gitMiner has been tested against Erlang OTP 22.3.1.
To install OTP 21.3.3 in Raspian, we'll first acquire the Erlang package from Erlang Solutions:
wget https://packages.erlang-solutions.com/erlang/debian/pool/esl-erlang_22.1.6-1~raspbian~buster_armhf.debNow we'll install various other dependencies and then install Erlang itself. You'll see some errors after running dpkg, you can ignore them:
$ sudo apt-get install libdbus-1-dev autoconf automake libtool flex libgmp-dev cmake libsodium-dev libssl-dev bison libsnappy-dev libclang-dev doxygen
$ sudo dpkg -i esl-erlang_22.1.6-1~raspbian~buster_armhf.deb
$ sudo apt-get install -fNow it's time to build the miner. This will take a while:
$ cd miner
$ make releaseNote that Miner for AMD64 requires AVX support on the processor due to the erasure library.