Add a way to skip rescanning on startup #12632

issue GSPP opened this issue on March 7, 2018
  1. GSPP commented at 3:36 PM on March 7, 2018: none

    I sometimes need to attach different wallets to my Bitcoin Core instance only to use certain RPC calls. I do not need up to date transaction or balance information. Basically I only want to perform dumpwallet. Would it be feasible to add a startup mode where rescanning and other optional work is skipped? Maybe block verification could also be skipped.

    Rescanning takes about 2h on my fairly recent CPU on an SSD. It would be very useful if this step could be skipped.

  2. meshcollider added the label Feature on Mar 14, 2018
  3. skeees referenced this in commit 2ed16336ea on Mar 26, 2018
  4. laanwj commented at 7:25 PM on March 26, 2018: member

    Maybe block verification could also be skipped.

    At the least use -listen=0 -connect=0, so that no new blocks can come in.

  5. promag commented at 10:04 PM on March 26, 2018: member

    What is preventing calling dumpwallet? Maybe the fix is to make it possible instead of adding -nowalletupdates?

  6. promag commented at 11:50 AM on March 27, 2018: member

    What version are you using?

  7. GSPP commented at 11:41 AM on April 2, 2018: none

    dumpwallet cannot be called until the initial rescan is done. Not sure if this was 0.15.1 or 0.16 but I don't think there was any change here.

    Looks like this will be implemented. Nice!

  8. promag commented at 9:27 PM on May 4, 2018: member

    @GSPP do you confirm you are able to call dumpwallet during the initial rescan in 0.16?

  9. GSPP commented at 4:02 PM on May 8, 2018: none

    I don't have a test environment handy at this point in time but I said it was not possible to call dumpwallet. Maybe you misread. I'm quite certain it was not possible.

  10. jonasschnelli commented at 7:48 AM on May 9, 2018: contributor

    I just started Bitcoin-Qt (official 0.16 release) with --datadir=/tmp and called dumpwallet... seems to work fine. I fail to see the issue here...

  11. GSPP commented at 1:52 PM on May 17, 2018: none

    @jonasschnelli does this not use an empty data dir? There's nothing to rescan. Use a fully synced node and change the wallet to make it rescan for a long time.

  12. MarcoFalke commented at 12:29 PM on May 9, 2020: member

    The feature request didn't seem to attract much attention in the past. Also, the issue seems not important enough right now to keep it sitting around idle in the list of open issues.

    Closing due to lack of interest. Pull requests with improvements are always welcome.

  13. MarcoFalke closed this on May 9, 2020

  14. DrahtBot locked this on Feb 15, 2022

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

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