0

I am curious about why do we need to confirmation blocks. I mean; all nodes getting a consensus after then add this block to the chain. Right?

If all nodes not in a consensus why this block added to chain? If all nodes in a consensus why we need to confirmation blocks?

Are nodes repeatedly reviewing transactions with unfinished confirmation block counts? If they do: What happens if a node discovers that the transaction is not eligible before the confirmation blocks for that transaction are finished?

1 Answer 1

3

From the blockchain's perspective, there is no such thing as "confirmation blocks". That's mostly a term coined by centralized exchanges and other trading platforms.

When a miner mines a block, he broadcasts it to the network. Due to latency issues, some nodes hear of it sooner, some later. Because not everyone hears of it at the same time, it's quite possible that another node has also managed to mine a block before hearing of another solved block - and then we have two valid blocks. Eventually one of them will become an uncle block and one continue in the canonical chain.

Which block becomes part of the canonical chain depends on the miners: which block do they decide to mine upon. Mostly this is the oldest new block they know about. It may happen that some percentage of the miners keep on mining on block A and other part of the network mines on block B. The parties which are stronger win, because their chain becomes longer, and the losing parties abandon their chain and start mining on the other chain.

Because it's never 100% certain that one specific new block stays in the canonical chain (remains the block on top of which all other blocks are mined on), trading places want to wait certain amount of blocks. The longer they wait, the more certain it is that a certain block will not be replaced anymore.

If the waiting time is too short, the chance for the block to be replaced may be too high. If the waiting time is too long, the user experience suffers. So they choose some amount of blocks to wait, after which they believe it's certain enough that no changes are made.

1
  • It was a great explanation. Thank you very much. Sep 10, 2021 at 12:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.