Avoid pruning blocks with transactions in wallets (even after wallets sync) #20384

issue luke-jr opened this issue on November 13, 2020
  1. luke-jr commented at 7:20 PM on November 13, 2020: member

    Good idea from @Bosch-0: https://github.com/bitcoin-core/gui/pull/125#issuecomment-723806881

    By not pruning blocks that contain wallet transactions, old backups can be restored despite pruning.

    Logical dependencies:

    • My current prune-locks PR only works with heights, whereas this should probably be based on block hash.
    • Some way to sort out if this was done, when restoring a backup, so we know it's safe to assume missing blocks are ignorable.
  2. luke-jr added the label Feature on Nov 13, 2020
  3. Bosch-0 commented at 4:02 AM on November 19, 2020: none

    How would (could you?) you know a block contains relevant transactions if the wallet is not yet imported?

  4. luke-jr commented at 4:50 AM on November 19, 2020: member

    This would only be useful for restoring backups (ie, the wallet was loaded during pruning).

  5. pinheadmz commented at 8:00 PM on March 31, 2023: member

    This looks like another issue that could be addressed by https://github.com/bitcoin/bitcoin/issues/21267

  6. pinheadmz assigned pinheadmz on Jun 2, 2023
Labels

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-14 15:14 UTC

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