5 ms·
Do you have a source I can look at or do I have to go look at at or can you point to code by chance? I'm quite surprised I wasn't aware of this if this is actu
by WhoIsSatoshi 6y ago
Do you have a source I can look at or do I have to go look at at or can you point to code by chance?
I'm quite surprised I wasn't aware of this if this is actually how it is implemented, the leading zeroes seemed right (and the difficulty by factor of 2 also!)
Thanks!
- nemo1618 6y agoSomeone else linked it below: https://github.com/bitcoin/bitcoin/blob/e071a3f6c06f41068ad17134189a4ac3073ef76b/main.cpp#L1179-L1181 https://github.com/bitcoin/bitcoin/blob/e071a3f6c06f41068ad1... Equivalent check in btcd, an alternative Bitcoin implementation: https://github.com/btcsuite/btcd/blob/991d32e72fe84d5fbf9c47cd604d793a0cd3a072/blockchain/validate.go#L329 https://github.com/btcsuite/btcd/blob/991d32e72fe84d5fbf9c47...