DEV Community

Cover image for ◼️41/100 Block-by-Block: The steps of the blockchain verification flow
András Novoszáth
András Novoszáth

Posted on

◼️41/100 Block-by-Block: The steps of the blockchain verification flow

One thing I learned about: The steps of the blockchain verification flow

The three main stages:

  1. Transaction lifecycle
  2. Block creation
  3. Block propagation

🔽📝Breakdown🔽

Transaction flow

  1. User signs a transaction and sends it to a node
  2. Node verifies the transaction
  3. Node broadcasts the transaction to the mempool
  4. Other nodes also validate the transaction

Block creation and proposal

  1. Validators/Miners select transactions from the mempool
  2. They create a candidate block
  3. The network picks the winning block based on the consensus mechanism.
  4. They broadcast the winning block to other nodes

Block propagation and consensus

  1. Other nodes receive and verify new blocks
  2. They append the block to their local chain
  3. The longest chain becomes the new reality

A few things I am still unclear about:

  • How do nodes find each other?
  • Where is the mempool? :)
  • The steps of the consensus mechanism?
  • How does the network pick the winning block/validator?
  • How does the network handle node desynchronization?

🔽🛠️Resources🔽

Top comments (0)