Skip to content

pcesar65/amoveo-c-miner

 
 

Repository files navigation

Amoveo C miner

This is the best miner for Amoveo currently available.

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

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.

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

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

Change the 3 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.

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.

About

a miner for the amoveo blockchain written in the c language

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 74.7%
  • Erlang 22.1%
  • Shell 3.2%