Mining

Mining is the process by which new currency is added to the blockchain. This is an incentive for the miners to validate and verify blocks made up of transactions. The mining process helps secure the network by verifying computations.

At a theoretical level, a miner performs the following functions:

  1. Listens for the transactions broadcasted on the Ethereum network and determines the transactions to be processed.
  2. Determines stale blocks called Uncles or Ommers and includes them in the block.
  3. Updates the account balance with the reward earned from successfully mining the block.
  4. Finally, a valid state is computed and block is finalized, which defines the result of all state transitions.

The current method of mining is based on Proof of Work, which ...

Get Mastering Blockchain now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.