[ad_1]
Bitcoin core mining code
I do not actually know however …
https://github.com/bitcoin/bitcoin/tree/grasp/src/node comprises
miner.cpp
,
miner.h
and
mini_miner.cpp
.
I might begin by trying there.
https://github.com/bitcoin/bitcoin/blob/grasp/src/bitcoin-util.cpp
comprises capabilities grind_task
and Grind
which you may discover look attention-grabbing.
Be aware that the mining code in Bitcoin core can not realistically be used to mine actual Bitcoin. It’s designed inefficiently for testing functions solely. Utilizing it burns extra money than it may well ever earn.
Different mining code
See additionally different questions and solutions right here about mining supply
Personally, I discover BTCD code higher commented than Bitcoin core and I might learn https://github.com/btcsuite/btcd/blob/grasp/mining/cpuminer/cpuminer.go – Folks extra accustomed to C++ than with Go may disagree.
The identical feedback as above, about makes use of for this code, apply.
Utilizing this code
You write that you just search “actual mining code” – it is best to learn Within the ASIC-age, is it value beginning mining Bitcoin at residence?
[ad_2]
Supply hyperlink
Leave a Reply