• About
  • FAQ
  • Earn Bitcoin while Surfing the net
  • Buy & Sell Crypto on Paxful
Newsletter
Approx Foundation
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
  • Home
    • Home – Layout 1
  • Bitcoin
  • Ethereum
  • Regulation
  • Market
  • Blockchain
  • Business
  • Guide
  • Contact Us
No Result
View All Result
Approx Foundation
No Result
View All Result
Home Bitcoin

blockchain – Why Bitcoin Core uses checkpoints and not the assumevalid block?

Moussa by Moussa
February 14, 2025
in Bitcoin
0
peer discovery – how to obtain the IP addresses of nodes for mining pools?
189
SHARES
1.5k
VIEWS
Share on FacebookShare on Twitter


Short answer: there remained a single known attack (low-difficulty header spam) that checkpoints somewhat protected against, even if they were old. As mining hardware continued to become cheaper per hash, that protection became weaker too, as explained in a recent security disclosure. Since Bitcoin Core 24.0, that attack is no longer possible, using a solution (headers presyncing) that does not require forcing a particular chain onto users (unlike checkpoints). As of early 2025, there is active discussion about removing checkpoints entirely.


Longer answer.

Ever since headers-first synchronization was introduced in Bitcoin 0.10, the only reason checkpoints were still useful is to combat headers spam.

I will quote another answer on the topic of mine:

since the headers-first synchronization introduced in Bitcoin Core 0.10.0, blocks are never downloaded before their headers are known and verified to have sufficient work (which means: enough to be within one day of the active chain tip, and more than the preconfigured minimum chain work). This means we already don’t need to worry about low-difficulty block spam anymore. The blocks are just not downloaded unless they’re part of a chain that’s proven to be good enough.

Yet, a weaker problem remained: a peer could start giving us (multiple) chains of headers that never amount to anything valuable. Since the headers are sent in forward order, there is no way to know at the beginning how good the result will get.

I give this as context, because when discussing security measures it is always good to keep in mind what problems we are trying to prevent: checkpoints were just there to prevent attackers from filling people’s disks and memory with large amounts of low-difficulty chains that fork off very early on (e.g., just after the genesis block) and never actually reach as much work as the real one, but the software has no means of figuring out that they can’t.

However, if somehow a chain existed which actually forked off from right after genesis, which was valid, and had more work than the chain we consider real today, the software should accept it, drastic as it is. Bitcoin’s security model relies on proof-of-work, which means accepting the most-work valid chain, even if it is perhaps not the chain we want.

I mention this, because people sometimes believe that checkpoints are a security feature that protects against deep reorgs. I believe that is a mistake: if deep reorgs happen, some of the very core assumption underlying proof-of-work are broken, and we should consider fixing it. Checkpoints are not a fix for this: either they are put so far in the past that they have no effect on which chain is accepted (as is the case now), or they’re made frequently at which point it is replacing a computer-system based consensus system with a human one.

So: all checkpoints do is force a headers-spamming attacker to fork off from the chain in 2014, rather than in 2009, where the difficulty is a lot higher (but still orders of magnitude lower than today). This makes the headers-spam attack many times more expensive, but as mining hardware has kept developing, as of 2022, the cost of the attack had gone down to roughly 1 BTC in mining costs (as explained in the security disclosure).

Since Bitcoin Core 24.0, a new approach to headers synchronization is introduced: headers pre-syncing (see PR 25717). It splits the headers-synchronization in two phases:

  • One (presyncing) during which headers are downloaded from peers, and verified, but not stored (except for a very small commitment).
  • If (and only if) the presync phases reaches headers that beat the minimum chainwork setting, and have a chance of beating the chain we already have, the headers are redownloaded and compared against what we received before, and stored for further processing (which includes downloading the full blocks).

By doing this, an attacker cannot spam a node anymore in a way that matters using a low-difficulty headers chain. This fixes the problem entirely, without checkpoints, and even extends the protection to points before the node has reached the checkpoints. With the last-known weakness that checkpoints protect against gone, they could be removed entirely.


To answer your actual questions:

Why a list of checkpoints is saved if only the last one is used?

Every checkpoint worked (and so far, works) only when reached. Its effect is that once you accept a block whose hash matches a checkpoint, no more reorgs are permitted away from it. This means that if the checkpoint list were completely wrong, it would have no effect, rather than preventing you from synchronizing at all.

This also meant that before the introduction of headers-presync, the concern for headers spam was even greater for a new node that just started up, because as long as it had not passed all the checkpoints, it would be vulnerable to header spam chains that fork off from earlier checkpoints, or even genesis, which would be far cheaper still.

Why are they still being used if the last checkpoint is from 2014?

At this point, the only reason is because of unknown unknowns: are there perhaps undiscovered attacks (like low-difficulty header spam, but perhaps different) that are not prevented by headers presync, but are made more expensive by checkpoints, even if just mildly? We believe not, but this concern, plus inertia, have resulted in them not having been removed yet.

Wouldn’t it better to use the assumevalid block as a “checkpoint”?

That, or another more recent checkpoint, would have been alternatives to the issue of falling costs of a low-difficulty spam attack. I believe the headers pre-sync approach we used instead is a lot more elegant, as it effectively lifts the protection of the minchainwork setting to header spam protection in a very generic way, and it does so without ever actually even potentially affecting which chain is actually considered valid, unlike checkpoints.

Disclaimer: I helped design the headers pre-synchronization mechanism.



Source link

Related articles

Bitget Confirms $351.6M Hot Wallet Breach And Pauses Withdrawals

Bitget Confirms $351.6M Hot Wallet Breach And Pauses Withdrawals

September 26, 2026
The Bond Crisis & Bitcoin’s Rise As A True Macro Asset

The Bond Crisis & Bitcoin’s Rise As A True Macro Asset

September 26, 2026
Share76Tweet47

Related Posts

Bitget Confirms $351.6M Hot Wallet Breach And Pauses Withdrawals

Bitget Confirms $351.6M Hot Wallet Breach And Pauses Withdrawals

by Moussa
September 26, 2026
0

Bitget says unauthorized transfers affected approximately $351.6 million held across parts of its hot and warm wallet infrastructure. The exchange...

The Bond Crisis & Bitcoin’s Rise As A True Macro Asset

The Bond Crisis & Bitcoin’s Rise As A True Macro Asset

by Moussa
September 26, 2026
0

Bitcoin’s volatility is falling, and Saifedean Ammous calls that the most bullish development in Bitcoin right now. Bear-market drawdowns have...

ECB Seeks to Link TIPS Payment System With Brazil’s Pix

ECB Seeks to Link TIPS Payment System With Brazil’s Pix

by Moussa
September 26, 2026
0

Key TakeawaysThe ECB is exploring a link between TIPS and Brazil’s Pix to enable faster, cheaper EU-Brazil payments.Connecting the systems...

Solana News Today: Alpenglow Hits Testnet as SOL Presses Against $120

Solana News Today: Alpenglow Hits Testnet as SOL Presses Against $120

by Moussa
September 26, 2026
0

Solana news today comes from two directions at once. SOL trades around $118, up about 1.3% on the day, while...

Solana Whale Wallet Count Declines 3.6% Since May

Kamino Brings Sterling Lending Onchain With Tgbp Market

by Moussa
September 25, 2026
0

Trusted Editorial content, reviewed by leading industry experts and seasoned editors. Ad Disclosure TL;DR Kamino has opened a lending market...

Load More

youssufi.com

sephina.com

[vc_row full_width="stretch_row" parallax="content-moving" vc_row_background="" background_repeat="no-repeat" background_position="center center" footer_scheme="dark" css=".vc_custom_1517813231908{padding-top: 60px !important;padding-bottom: 30px !important;background-color: #191818 !important;background-position: center;background-repeat: no-repeat !important;background-size: cover !important;}" footer_widget_title_color="#fcbf46" footer_button_bg="#fcb11e"][vc_column width="1/4"]

We bring you the latest in Crypto News

[/vc_column][vc_column width="1/4"][vc_wp_categories]
[/vc_column][vc_column width="1/4"][vc_wp_tagcloud taxonomy="post_tag"][/vc_column][vc_column width="1/4"]

Newsletter

[vc_raw_html]JTNDcCUzRSUzQ2RpdiUyMGNsYXNzJTNEJTIydG5wJTIwdG5wLXN1YnNjcmlwdGlvbiUyMiUzRSUwQSUzQ2Zvcm0lMjBtZXRob2QlM0QlMjJwb3N0JTIyJTIwYWN0aW9uJTNEJTIyaHR0cHMlM0ElMkYlMkZhcHByb3gub3JnJTJGJTNGbmElM0RzJTIyJTNFJTBBJTBBJTNDaW5wdXQlMjB0eXBlJTNEJTIyaGlkZGVuJTIyJTIwbmFtZSUzRCUyMm5sYW5nJTIyJTIwdmFsdWUlM0QlMjIlMjIlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMnRucC1maWVsZCUyMHRucC1maWVsZC1maXJzdG5hbWUlMjIlM0UlM0NsYWJlbCUyMGZvciUzRCUyMnRucC0xJTIyJTNFRmlyc3QlMjBuYW1lJTIwb3IlMjBmdWxsJTIwbmFtZSUzQyUyRmxhYmVsJTNFJTBBJTNDaW5wdXQlMjBjbGFzcyUzRCUyMnRucC1uYW1lJTIyJTIwdHlwZSUzRCUyMnRleHQlMjIlMjBuYW1lJTNEJTIybm4lMjIlMjBpZCUzRCUyMnRucC0xJTIyJTIwdmFsdWUlM0QlMjIlMjIlM0UlM0MlMkZkaXYlM0UlMEElM0NkaXYlMjBjbGFzcyUzRCUyMnRucC1maWVsZCUyMHRucC1maWVsZC1lbWFpbCUyMiUzRSUzQ2xhYmVsJTIwZm9yJTNEJTIydG5wLTIlMjIlM0VFbWFpbCUzQyUyRmxhYmVsJTNFJTBBJTNDaW5wdXQlMjBjbGFzcyUzRCUyMnRucC1lbWFpbCUyMiUyMHR5cGUlM0QlMjJlbWFpbCUyMiUyMG5hbWUlM0QlMjJuZSUyMiUyMGlkJTNEJTIydG5wLTIlMjIlMjB2YWx1ZSUzRCUyMiUyMiUyMHJlcXVpcmVkJTNFJTNDJTJGZGl2JTNFJTBBJTNDZGl2JTIwY2xhc3MlM0QlMjJ0bnAtZmllbGQlMjB0bnAtcHJpdmFjeS1maWVsZCUyMiUzRSUzQ2xhYmVsJTNFJTNDaW5wdXQlMjB0eXBlJTNEJTIyY2hlY2tib3glMjIlMjBuYW1lJTNEJTIybnklMjIlMjByZXF1aXJlZCUyMGNsYXNzJTNEJTIydG5wLXByaXZhY3klMjIlM0UlQzIlQTBCeSUyMGNvbnRpbnVpbmclMkMlMjB5b3UlMjBhY2NlcHQlMjB0aGUlMjBwcml2YWN5JTIwcG9saWN5JTNDJTJGbGFiZWwlM0UlM0MlMkZkaXYlM0UlM0NkaXYlMjBjbGFzcyUzRCUyMnRucC1maWVsZCUyMHRucC1maWVsZC1idXR0b24lMjIlM0UlM0NpbnB1dCUyMGNsYXNzJTNEJTIydG5wLXN1Ym1pdCUyMiUyMHR5cGUlM0QlMjJzdWJtaXQlMjIlMjB2YWx1ZSUzRCUyMlN1YnNjcmliZSUyMiUyMCUzRSUwQSUzQyUyRmRpdiUzRSUwQSUzQyUyRmZvcm0lM0UlMEElM0MlMkZkaXYlM0UlM0NiciUyRiUzRSUzQyUyRnAlM0U=[/vc_raw_html][/vc_column][/vc_row]
No Result
View All Result
  • Contact Us
  • Homepages
  • Business
  • Guide

© 2024 APPROX FOUNDATION - The Crypto Currency News