Better HN
topnewbestaskshowjobs
Log inSign up

assliquor

2 karma · joined Apr 12, 2013 (13y ago) · 1 submissions

Submissions

comment 13y ago · link · parent

The source code is here: 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.