[Idea] Wallet UTXO Pruning #19942

issue Crypto2 openend this issue on September 11, 2020
  1. Crypto2 commented at 3:35 pm on September 11, 2020: none

    Is your feature request related to a problem? Please describe. As we all know the more TXes in a Bitcoin wallet the slower and slower it runs.

    Describe the solution you’d like I had an idea (would be default off of course) where you could set like walletprune=X to whatever number you want and any spent entries in the wallet would be deleted after getting that many confirms. In theory this should greatly speed up wallet activity. This would be completely separate from blockchain pruning which could be on or off.

    Describe alternatives you’ve considered The main alternative here is rolling your own wallet system or using a service like BitGo for anything more than small projects.

  2. Crypto2 added the label Feature on Sep 11, 2020
  3. achow101 commented at 3:41 pm on September 11, 2020: member

    I am actively working on dealing with this without deleting anything.

    There are 2 components:

    1. Store the UTXOs of the wallet and do balance and coin selection on those UTXOs
    2. Loading transactions only when they are needed.
  4. Crypto2 commented at 6:05 pm on September 11, 2020: none
    Definitely any improvement would be great 👍
  5. Crypto2 commented at 3:39 pm on November 20, 2020: none
    @achow101 Does it seem like this will make it into Bitcoin Core anytime soon? tbh this is probably one of the most important things to be fixed in Bitcoin right now for service providers, at least to prevent them from having to waste a ton of money on wallet services.
  6. achow101 commented at 4:53 pm on November 20, 2020: member
    Not anytime soon unfortunately. My current goal is to get all of the currently open coin selection PRs merged first. The changes that restructure how we handle UTXOs are somewhat reliant on the coin selection changes. Also PRs are not open for them yet.
  7. Crypto2 commented at 0:48 am on August 24, 2021: none
    @achow101 Any progress on this? Even an unofficial/temporary performance enhancement would be massively beneficial.
  8. Crypto2 commented at 6:13 am on April 26, 2022: none
    @achow101 Any progress on this in the last couple of major versions?
  9. achow101 commented at 2:02 pm on April 26, 2022: member
    Several of the coin selection changes were merged. The next step is #24914 and I have a few branches in my repo (no PRs yet) for doing TXO tracking.
  10. maflcko added the label Wallet on Aug 4, 2022
  11. achow101 commented at 2:58 pm on October 14, 2024: member

    I have a few branches in my repo (no PRs yet) for doing TXO tracking.

    See #27286 and #27865


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: 2024-12-19 00:12 UTC

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