Does anyone knows which part of the Bitcoin Core source code contains the proof of work for mining, creating of block and adding to blockchain? What are the files and functions involved?

1 Answer 1


The mining functionality that does background mining in the Bitcoin core was removed in August of 2016. See the following change log:


The mining code itself is still available for testing and experimentation and is located in the files called "miner.cpp" and "miner.h" which are in the main src directory.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.