Giter Site home page Giter Site logo

alekras / amoveo-c-miner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zack-bitcoin/amoveo-c-miner

0.0 2.0 0.0 30.87 MB

a miner for the amoveo blockchain written in the c language

C 37.94% Shell 2.78% Erlang 18.18% C++ 2.71% Cuda 38.40%

amoveo-c-miner's Introduction

Amoveo C miner

This is the best miner for Amoveo currently available.

First, if you haven't installed the dependencies, do that here.

installation

git clone https://github.com/zack-bitcoin/amoveo-c-miner.git

configure

You can connect it to a full node. Change the url at the top of miner.erl to point to your full node. It is named Peer. This gives all your money to whoever runs that full node.

You can also connect to a mining pool. If you connect to a mining pool, you get paid by the person running the pool. This way you don't have to run Amoveo. set Peer to be the url for the mining pool.

By default Peer is set up to connect to a public mining pool.

Put your pubkey into the Pubkey definition at the top of miner.erl so that you can get paid.

By default it uses 2 threads for mining. To change this, change the line near the top of miner.erl It says -define(CORES, 2).

Change the 2 to the number of threads that you want to mine with. Usually, this should be the same as, or one less than the number of CPU cores on your computer.

mining

On ubuntu, the miner in C language can be compiled and turned on like this:

sh build_ubuntu.sh 

Then you start mining like this:

miner:start().

To turn it off, first use Control + C, a, enter to exit the erlang interface. Then to kill the miner processes, do:

sh clean.sh

Check how fast you can mine in megahashes per second.

You can do a speed test to measure how fast your computer is able to mine. First build the software normally

sh build_ubuntu.sh

Then change the settings to be in speed-test mode.

miner:speed_test().

then quit from erlang

halt().

now run the c program alone

./amoveo_c_miner

other notes

The build.sh install script works for ubuntu linux. If you are using a different system, you will have to make some simple changes.

By writing a miner for Amoveo in C, it becomes easier to write miners for the GPU and FPGAs. This simple C miner is a template for making miners in other languages.

Here is a link to where the same mining is implemented in erlang. The 'pow' function is the one to look at

Here is a link to the main Amoveo repo.. If you want to solo mine without a mining pool, you will need this. Solo miners make more profit.

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.