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

issue jonasschnelli openend 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.

     0Prune: UnlinkPrunedFiles deleted blk/rev (00263)
     1Prune: UnlinkPrunedFiles deleted blk/rev (00264)
     2Prune: UnlinkPrunedFiles deleted blk/rev (00265)
     3Prune: UnlinkPrunedFiles deleted blk/rev (00266)
     4Prune: UnlinkPrunedFiles deleted blk/rev (00267)
     5Prune: UnlinkPrunedFiles deleted blk/rev (00268)
     6Prune: UnlinkPrunedFiles deleted blk/rev (00269)
     7Prune: UnlinkPrunedFiles deleted blk/rev (00270)
     8Prune: UnlinkPrunedFiles deleted blk/rev (00271)
     9Prune: UnlinkPrunedFiles deleted blk/rev (00272)
    10Prune: UnlinkPrunedFiles deleted blk/rev (00273)
    11Prune: UnlinkPrunedFiles deleted blk/rev (00274)
    12Prune: UnlinkPrunedFiles deleted blk/rev (00275)
    13Prune: UnlinkPrunedFiles deleted blk/rev (00276)
    14Prune: UnlinkPrunedFiles deleted blk/rev (00277)
    15Prune: UnlinkPrunedFiles deleted blk/rev (00278)
    16Prune: UnlinkPrunedFiles deleted blk/rev (00279)
    17Prune: UnlinkPrunedFiles deleted blk/rev (00280)
    18Prune: UnlinkPrunedFiles deleted blk/rev (00281)
    19Prune: UnlinkPrunedFiles deleted blk/rev (00282)
    20Prune: UnlinkPrunedFiles deleted blk/rev (00283)
    21Prune: UnlinkPrunedFiles deleted blk/rev (00284)
    22Prune: UnlinkPrunedFiles deleted blk/rev (00285)
    23init message: Loading wallet...
    24nFileVersion = 119900
    25Keys: 102 plaintext, 0 encrypted, 102 w/ metadata, 102 total
    26 wallet                  772ms
    27Error: Prune: last wallet synchronisation goes beyond pruned data. You need to -reindex (download the whole blockchain again in case of pruned node)
    28Error: Prune: last wallet synchronisation goes beyond pruned data. You need to -reindex (download the whole blockchain again in case of pruned node)
    
  2. 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.
  3. laanwj added the label Wallet on Jul 29, 2015
  4. laanwj closed this on Aug 3, 2015

  5. MarcoFalke 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: 2024-10-05 04:12 UTC

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