Pruning undo files? #19040

issue jb55 openend this issue on May 21, 2020
  1. jb55 commented at 4:19 pm on May 21, 2020: contributor

    Currently these take up around 37GB on a full node, and as far as I can tell they are only used for stats and large reorgs. It would be nice if there was an option to prune these past a minimum of 288 (MIN_BLOCKS_TO_KEEP) blocks if the user:

    • does not care for these stats
    • is not worried about large reorgs
    • doesn’t want to prune blocks

    As a side note: txindices currently use 10GB less space than this data.

    It doesn’t look like you can just delete these files either: https://bitcoin.stackexchange.com/questions/71272/are-old-rev-dat-file-safely-deletable

  2. jb55 added the label Feature on May 21, 2020
  3. vasild commented at 10:51 am on June 3, 2020: contributor
  4. jb55 commented at 4:18 pm on June 4, 2020: contributor
    yes a lot of those points by @sipa were brought up when the idea was mentioned awhile back. I’m not convinced that “just run a pruned node” is reasonable suggestion for people who want to keep the full chain for rescan. Although the added complexity is a downside. Loss of stats is a minor inconvenience.
  5. willcl-ark commented at 4:29 pm on September 21, 2023: member
    These files are used and useful in several places, and if there is a re-org they are vital.
  6. willcl-ark closed this on Sep 21, 2023

  7. bitcoin locked this on Sep 20, 2024

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: 2025-04-27 18:12 UTC

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