Created
January 27, 2022 21:03
-
-
Save humbdrag/778f9671db94de93ea97037e7c25ba79 to your computer and use it in GitHub Desktop.
Compare with target hash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
block_template['merkleroot'] = calc_merkle_root( | |
[transaction['hash'] for transaction in block_template['transactions']] | |
) | |
block_template['nonce'] = 0 | |
block_header = calc_block_header(block_template) | |
block_hash = sha256_double_hash(block_header) | |
block_hash < target_hash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment