Why don't we have more checkpoints? #21886

issue abhiShandy opened this issue on May 9, 2021
  1. abhiShandy commented at 3:34 AM on May 9, 2021: none

    Is your feature request related to a problem? Please describe.

    <!-- A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] -->

    src/chainparams.cpp:146 has few checkpoints for the mainnet using a table of block and blockhash. Why does it end at block 295000?

    Describe the solution you'd like

    <!-- A clear and concise description of what you want to happen. -->

    Either add a comment with an explanation for given number checkpoints or add checkpoints at an agreed block interval.

    Describe alternatives you've considered

    <!-- A clear and concise description of any alternative solutions or features you've considered. -->

    Additional context

    <!-- Add any other context or screenshots about the feature request here. -->

    Screen Shot 2021-05-09 at 8 58 49 AM

  2. abhiShandy added the label Feature on May 9, 2021
  3. fanquake removed the label Feature on May 9, 2021
  4. MarcoFalke added the label Docs on May 9, 2021
  5. MarcoFalke added the label Questions and Help on May 9, 2021
  6. brunoerg commented at 11:11 AM on May 18, 2021: contributor

    See this answer on bitcoin stackexchange.

    I think they are not so useful and if we need to use them, it means the system is already broken.

  7. kristapsk commented at 11:21 AM on May 18, 2021: contributor

    It is not uncommon for people to add additional checkpoints to their nodes. For example, Bitcoin Knots, which is patched version of Bitcoin Core by @luke-jr, adds additional checkpoints.

  8. MarcoFalke commented at 8:53 AM on May 20, 2021: member

    Could make sense to mention briefly in the code what https://bitcoin.stackexchange.com/a/70824/3576 says?

  9. brunoerg commented at 10:49 AM on May 20, 2021: contributor

    I think so, @MarcoFalke.

  10. abhiShandy commented at 2:04 PM on May 20, 2021: none

    @brunoerg Shall I remove the checkpoints (and the validation code) to avoid the confusion?

  11. sipa commented at 4:47 PM on May 20, 2021: member

    @abhiShandy No, they're still needed to prevent low-difficulty header spam. It's not a particularly strong attack, but without checkpoints it's trivial. The current checkpoints suffice to make it sufficiently expensive.

  12. adamjonas commented at 5:11 PM on August 4, 2022: member

    Closing since the questions seems to be answered sufficiently.

    Checkpoints are currently required, but see #25725 for a glimpse into the future.

  13. adamjonas closed this on Aug 4, 2022

  14. bitcoin locked this on Aug 4, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 18:14 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me