fresh prune with out-of-sync wallet can fail (but shouldn't) #6345

issue jonasschnelli opened this issue on June 27, 2015
  1. jonasschnelli commented at 8:17 AM on June 27, 2015: contributor

    If you restart a non pruned full node with -prune=550 (to enable pruning), while having a wallet which is not in sync (maybe you copied it), the node will first prune, than complain about a impossible rescan (see below). IMO before pruning all old blocks, the node should firs try to sync the wallet.

    Prune: UnlinkPrunedFiles deleted blk/rev (00263)
    Prune: UnlinkPrunedFiles deleted blk/rev (00264)
    Prune: UnlinkPrunedFiles deleted blk/rev (00265)
    Prune: UnlinkPrunedFiles deleted blk/rev (00266)
    Prune: UnlinkPrunedFiles deleted blk/rev (00267)
    Prune: UnlinkPrunedFiles deleted blk/rev (00268)
    Prune: UnlinkPrunedFiles deleted blk/rev (00269)
    Prune: UnlinkPrunedFiles deleted blk/rev (00270)
    Prune: UnlinkPrunedFiles deleted blk/rev (00271)
    Prune: UnlinkPrunedFiles deleted blk/rev (00272)
    Prune: UnlinkPrunedFiles deleted blk/rev (00273)
    Prune: UnlinkPrunedFiles deleted blk/rev (00274)
    Prune: UnlinkPrunedFiles deleted blk/rev (00275)
    Prune: UnlinkPrunedFiles deleted blk/rev (00276)
    Prune: UnlinkPrunedFiles deleted blk/rev (00277)
    Prune: UnlinkPrunedFiles deleted blk/rev (00278)
    Prune: UnlinkPrunedFiles deleted blk/rev (00279)
    Prune: UnlinkPrunedFiles deleted blk/rev (00280)
    Prune: UnlinkPrunedFiles deleted blk/rev (00281)
    Prune: UnlinkPrunedFiles deleted blk/rev (00282)
    Prune: UnlinkPrunedFiles deleted blk/rev (00283)
    Prune: UnlinkPrunedFiles deleted blk/rev (00284)
    Prune: UnlinkPrunedFiles deleted blk/rev (00285)
    init message: Loading wallet...
    nFileVersion = 119900
    Keys: 102 plaintext, 0 encrypted, 102 w/ metadata, 102 total
     wallet                  772ms
    Error: Prune: last wallet synchronisation goes beyond pruned data. You need to -reindex (download the whole blockchain again in case of pruned node)
    Error: Prune: last wallet synchronisation goes beyond pruned data. You need to -reindex (download the whole blockchain again in case of pruned node)
    
  2. ajweiss cross-referenced this on Jun 30, 2015 from issue Delay initial pruning until after wallet init by ajweiss
  3. ajweiss commented at 7:37 PM on June 30, 2015: contributor

    Fix pushed. It's a bit of an edge case, but I imagine it's really annoying.

  4. laanwj added the label Wallet on Jul 29, 2015
  5. laanwj closed this on Aug 3, 2015

  6. gmaxwell cross-referenced this on Feb 10, 2016 from issue "last wallet synchronisation goes beyond pruned data" on totally new pruned node by gmaxwell
  7. bitcoin locked this on Sep 8, 2021

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-05-19 06:55 UTC