Where can i find proof of work in bitcoin core source code?

1

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 involves? https://github.com/bitcoin/bitcoin

Jeannie P

Posted 2017-11-25T19:10:58.520

Reputation: 11

Answers

-1

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

https://bitcoin.org/en/release/v0.13.0

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.

Tyler Durden

Posted 2017-11-25T19:10:58.520

Reputation: 828

1The ability to construct new blocks is still there, in miner.cpp, for testing purposes - there is just no "mine in the background" functionality anymore.Pieter Wuille 2017-11-25T20:02:20.737

I stand corrected. I updated my answer.Tyler Durden 2017-11-25T20:26:43.937