Author

Topic: How to debug bitcoin core(0.18) code about Mining ? (Read 126 times)

legendary
Activity: 2870
Merit: 7490
Crypto Swap Exchange
The questions is a bit ambiguous for me. If you're looking for way to mine on testnet or regtest, you can check those articles :
https://blog.lopp.net/how-to-solo-mine-on-bitcoin-s-testnet/
https://bisq.network/blog/how-to-set-up-bitcoin-regtest/

TLDR : You don't need to specify parameter when launch bitcoind.exe in order to mine a block, but use external software to do it (for testnet) or execute command generate from bitcoin-cli, Bitcoin Core console or RPC-JSON.
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
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).
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 | miner.h.
jr. member
Activity: 47
Merit: 8
What is the entry function for mining ? And what param is for mining when launch bitcoind.exe ?

Thanks
Jump to: