3 ms·
The source code is here: https://github.com/bitcoin/bitcoin/blob/master/src/miner.cpp https://github.com/bitcoin/bitcoin/blob/master/src/miner.cpp Basically, t
by assliquor 13y ago
The source code is here:
https://github.com/bitcoin/bitcoin/blob/master/src/miner.cpp https://github.com/bitcoin/bitcoin/blob/master/src/miner.cpp
Basically, the ScanHash_CryptoPP(..) function does the actual hashing, and is called by the BitcoinMiner(..) function, which checks if the returned hash has the appropriate number of 0 bits.