How does bitcoin implement checkpoint mechanism to finalize the blockchain history?

by Preet   Last Updated February 13, 2018 12:27 PM

I read in Peercoin whitepaper that to prevent large blockchain reorganization, bitcoin also implements checkpoint mechanism which finalizes the blockchain history. Can you explain how exactly bitcoin implements this?



Answers 1


Checkpoints are a relatively misunderstood part bitcoin - Bitcoin does have a few checkpoints, but they are only used in one very specific case. That case is just to ignore forks from the chain early on, before the most recently seen checkpoint. When a node has seen a block it recognises as a checkpoint, any further blocks received below that height will be ignored.

You can see this here: https://github.com/bitcoin/bitcoin/blob/0dfc25f82a01d9fec26380d95915df31e1fe2c02/src/validation.cpp#L3107

It is a long term goal of removing the checkpoints entirely, because they are a source of confusion over the security model and power the developers have. But currently the role they serve is to prevent low difficulty header flooding attacks, and there has been no alternative solution proposed yet (that I know of)

MeshCollider
MeshCollider
February 13, 2018 11:58 AM

Related Questions


How does Proof of Burn work?

Updated June 27, 2017 02:27 AM

What does it mean by behaving badly in blockchains

Updated October 30, 2017 17:27 PM

Can a Blockchain be Built Like This?

Updated January 17, 2018 05:27 AM