What open source miner applications are there? Especially to see how the mining process works.
|
The official list is on The Wiki and is constantly being modified since new software shows up fairly often, but here's the quick breakdown:
Poclbm and Phoenix are probably the most popular (links go to the sources) though that's based more on my opinion than any facts or studies. In either case, both should shed some light on the mining process. |
|||||||
|
|
jzgarzik wrote a very basic miner in Python. It is slow on purpose, because it shows how a simple miner works (and the mining process). It can also be reused as boilerplate code (the getwork JSON-RPC command). |
|||||
|
|
GPU Miners
CPU Miners
|
|||
|
|
|
You can see how mining process works here https://github.com/bitcoin/bitcoin/tree/master/contrib/pyminer |
|||
|
|
|
The most obvious open-source mining application is the official Bitcoin client itself, available at: https://github.com/bitcoin/bitcoin The source code is well written and shows quite clearly the way that hashing is performed in order to mine new blocks. It is however a CPU-only algorithm, and doesn't use some of the more advanced mechanisms for accelerating the hashing process. Despite this, it definitely offers a good introduction into how the generation of blocks, hashing etc. works, without the added overhead of having to deal with potentially unfamiliar GPU-based mining code, which is intentially highly optimised and as a result will likely to be more difficult to understand, and make the basic concepts more difficult to follow. |
|||
|
|
|
Phoenix is a very good GPU miner. While I couldn't find the exact license, it's source is available on GitHub: https://bitcointalk.org/index.php?topic=6458.0 Well, it's written in python, so you could see the source anyways. However, it's actually quite easy to understand and modify, e.g. to create your own logging interface. |
|||
|
|
|
Poclbm: An open source, python based GPU miner. Open Source FPGA Miner: The name says it all. Hit the source for the project. |
|||
|
|
|
CPU miner in PHP - https://github.com/codler/Bitcoin-phpMiner |
|||
|
|
|
M0mchil's poclbm, written in python, hosted on github. |
||||
|
|