Incomplete rescan from forced shutdown. #3308

issue gmaxwell opened this issue on November 22, 2013
  1. gmaxwell commented at 9:43 PM on November 22, 2013: contributor

    User does an importprivkey with rescan.

    User thinks software is hung because the rescan takes a while.

    User kills software and restarts.

    Some coin is missing because the rescan never finished.

    Perhaps importprivkey w/ rescan should set the scanned height in the wallet to 0 before importing the key?

  2. laanwj commented at 6:46 AM on November 23, 2013: member

    From other people I've heard complaints that bitcoind always does a rescan on next start if a key was imported. Kind of completely the opposite from this. Strange.

  3. gmaxwell commented at 8:21 AM on November 27, 2013: contributor

    Hm. I've tested and it doesn't rescan on start after importing a key.

    Fun example from IRC related to this: 00:18 < master5o1> ugh bitcoin-qt keeps crashing when i try to importprivkey 00:18 < master5o1> =/ 00:18 @gmaxwell master5o1: What do you mean by crashing? 00:18 < master5o1> okay 00:18 < master5o1> i mean freezing 00:18 @gmaxwell ... 00:19 @gmaxwell It's not crashing. 00:19 @gmaxwell It can take on the order of 10 minutes to rescan when you import a key. 00:19 @gmaxwell (depending on how fast your disk is, on a fast ssd its much less) 00:19 < master5o1> oh.

  4. laanwj commented at 3:59 PM on January 17, 2014: member

    I think this is fixed by #3502

  5. laanwj closed this on Jul 31, 2014

  6. Bushstar referenced this in commit fd0f24335d on Apr 8, 2020
  7. MarcoFalke locked this on Sep 8, 2021
Contributors

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-18 21:16 UTC

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