Do -rescan automatically when necessary #6514

issue MarcoFalke opened this issue on August 4, 2015
  1. MarcoFalke commented at 8:20 AM on August 4, 2015: member

    #6513 is still one of the more or less popular issues with bitcoin. Less technically gifted users may lose bitcoins due to this.

    Is it possible to gather some causes for this and decide if bitcoin core can solve those on it's own?

  2. jonasschnelli commented at 8:22 AM on August 4, 2015: contributor

    Losing bitcoins would be hard,.. but i agree. It might drive people to a point where they accidentally could delete keys.

    I think a option "rescan for wallet transaction" in the GUI would solve most issues... most wallet apps support a similar function.

  3. laanwj commented at 11:03 AM on August 4, 2015: member

    -rescan should never be automatically necessary. Not sure how it's possible that a transaction was missed in your case. But if it is necessary at all it's a bug, so that'd be virtually impossible to detect.

  4. laanwj added the label Wallet on Aug 4, 2015
  5. MarcoFalke commented at 2:46 PM on August 5, 2015: member

    What happens if I load my n month old wallet.dat into my bitcoin core I use daily? I am assuming there is a rescan happening for all block of the last n months?

  6. sipa commented at 2:50 PM on August 5, 2015: member

    That is correct.

    The wallet file stores up to which block it has "seen" the chain. At startup, an automatic rescan happens for exactly the missing part.

    A manual rescan should only be necessary when you use importprivkey/importwallet with the rescan option set to false, if you are loading an extremely old wallet file (several years), or when you manually tweak the wallet file using external utilities.

  7. laanwj closed this on Oct 20, 2015

  8. DrahtBot 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-04-17 06:15 UTC

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