Git Product home page Git Product logo

alephium-miner-getting-started's Introduction

Getting startred with Alephium Miner

This repository contains all the material needed to start mining on Alephium blockchain.

⚠️⚠️⚠️ Please keep in mind this is not a production setup, use it at your own risks!

It is based on docker, docker-compose and ubuntu linux version 20.04, and works out of the box with this setup.

The setup contains multiple parts, a.k.a:

  • the broker, Alephium full node, storing the blockchain and communicating with other nodes
  • the miner, Alephium miner, securing the chain
  • the mining-companion, performing coordination duty between the miner and the broker
  • the init module, to initialise some directory structures
  • prometheus, a timeserie datastore because metrics are king
  • mtail, to collect miner metrics
  • grafana, a metrics visualisation tool, because metrics are king :)

One step install

curl -L https://raw.githubusercontent.com/alephium/alephium-miner-getting-started/main/getting-started-ubuntu2004.sh | bash

What's next?

Next you can edit the file $HOME/.alephium-miner-setup/.env, and particularly configure an transfer address under the config parameter miningTransferAddress. The mining companion will start transferring the mined ALPH to this wallet every 15 minutes.

Get involvement in the vibrant community in the Alephium Discord server.

Getting logs (FAQ)

For the miner:

cd $HOME/.alephium-miner-setup; docker-compose logs miner

To get mined blocks:

cd $HOME/.alephium-miner-setup; docker-compose logs miner | grep -i mined

For the broker:

cd $HOME/.alephium-miner-setup; docker-compose logs broker

To retrieve the mnemonic of your mining wallet:

cd $HOME/.alephium-miner-setup; docker-compose logs mining-companion | grep "SENSITIVE"

What's going on under the hood?

At startup, a service called alephium is started (/etc/systemd/system/alephium.service). It will perform the following operation, in sequence:

  1. The init container creates the required directory structure with some permissive permissions.
  2. The broker starts, connect to the mainnet, and start synching
  3. The mining companion starts, and check is a mining wallet exists. If no, it creates one, printing the mnemonics in the logs (see below how to get the logs)
  4. The mining companion configures the mining key of the broker
  5. The miner waits (container restart) until the broker is synched with the chain, and starts mining.

And that's it, the whole process takes about 20 minutes at the time of writing.

alephium-miner-getting-started's People

Contributors

killerwhile avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

alephium-miner-getting-started's Issues

HiveOS custom package needed

Many of us are mining under HiveOS right now manually. However, we're doing this by treating HiveOS as a normal linux server (and installing what's needed/etc manually).

I think there's a need for a miner package for HiveOS. It probably doesn't make sense to bundle the full node under it, but just the miner itself..

Some documentation -
Steps to add a custom miner in hiveos -
https://hiveos.farm/getting_started-start_custom_miner/

Steps to create a custom miner tarball - note that there's some metadata/etc that needs to be created in there
https://forum.hiveos.farm/t/custom-miner-integration/4521

This would make it so that hiveos can select alph as an algorithm without us having to manually run it..

2080 ti

Mİner doesnt recognize non-dch 20x series driver driver nı :472.12

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.