Coder Social home page Coder Social logo

miner's Introduction

Build Status

miner quickstart

Miner for helium blockchain

Build

$ make

Typecheck

$ make typecheck

Test

$ make test

docker

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.

It is possible to build ARM64 images from an AMD64 machine. Install the following:

sudo apt-get install qemu binfmt-support qemu-user-static # Install the qemu packages

miner step-by-step

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.

Installing Miner from Source

First, you'll need git. If you don't have it installed:

sudo apt-get install git

Clone the git repository:

git clone https://github.com/helium/miner.git

Install Erlang

Miner 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.deb

Now 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 make
sudo dpkg -i esl-erlang_22.1.6-1~raspbian~buster_armhf.deb
sudo apt-get install -f

Compile the Miner

Now it's time to build the miner. This will take a while:

cd miner
make release

Note that Miner for AMD64 requires AVX support on the processor due to the erasure library.

miner's People

Contributors

abhay avatar amirhaleem avatar andymck avatar benking84 avatar evanmcc avatar fvasquez avatar jadeallenx avatar jaykickliter avatar ke6jjj avatar kent-williams avatar lthiery avatar maco2035 avatar macpie avatar madninja avatar shawaj avatar vagabond avatar vihu avatar w0ts0n avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.