How to check two hashes are equal using block data and the nonce?
I wrote a python program to calculate the block hash from the version, prev_block, mrkl_root, timestamp, bits, and nonce. You can see it here.