Bifalgorithm post · Crystal · Building the Blockchain
How does proof of work seal a new block?
How does proof of work seal a new block? (Crystal · Building the Blockchain) — "After transactions have been packaged, miners compete to find a block hash that…
Ideas in this flowchart
- Bitcoin mining searches for a qualifying block hash
- Transactions are packaged into a block
- Miners compete to find the qualifying hash
- Bitcoin’s algorithm sets the hash conditions
- The block data is used for hashing
- A nonce is randomly generated
- The nonce is added to the block data
- The miner calculates a new block hash
- Does the hash satisfy the algorithm’s conditions?
- The hash satisfies the required conditions
- The qualifying hash typically contains a specified pattern of zeros
- One miner finds the qualifying result
- The hash does not satisfy the conditions
- The miner repeats the nonce-and-hash process
- The process operates like a random lottery
- Miners perform many hashing attempts
- More hashing power increases a miner’s chances
- More hashing power does not guarantee success