Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: maplelake on November 16, 2019, 10:36:28 PM



Title: How to debug bitcoin core(0.18) code about Mining ?
Post by: maplelake on November 16, 2019, 10:36:28 PM
What is the entry function for mining ? And what param is for mining when launch bitcoind.exe ?

Thanks


Title: Re: How to debug bitcoin core(0.18) code about Mining ?
Post by: nc50lc on November 17, 2019, 03:48:05 AM
Is this for testing or "real mining"?
Because the internal miner was removed since: v0.13.0 (release note: https://bitcoin.org/en/release/v0.13.0#removal-of-internal-miner (https://bitcoin.org/en/release/v0.13.0#removal-of-internal-miner)).
Although there's a RPC call for testing purposes and reasons written in the link.

Code? it's still in github: https://github.com/bitcoin/bitcoin/blob/master/src/miner.cpp (https://github.com/bitcoin/bitcoin/blob/master/src/miner.cpp) | miner.h (https://github.com/bitcoin/bitcoin/blob/master/src/miner.h).