Rename -rescan because it confuses people #1912

issue gmaxwell opened this issue on October 6, 2012
  1. gmaxwell commented at 8:20 PM on October 6, 2012: contributor

    It's now almost a daily event that I see people on IRC saying they used -rescan or telling people to use rescan when it makes no sense and should have no effect at all. Because it takes a little while some things that just take time to resolve (e.g. confirmation count going up on transactions) is very aggressively believed to be the magical cure all.

    Either that or there are a whole litany of nasty bugs all over the client, some totally unrelated to the wallet, which are cured by rescan which aren't being reported because people have a workaround.

    Instead perhaps we should rename rescan to -frobnicate-wallet-transaction-index.

  2. laanwj commented at 7:39 AM on May 2, 2014: member

    People also regularly confuse options that affect the wallet with those that affect block chain indexing. Which is not strange; -rescan and -reindex both sound the same, from the name you wouldn't guess they do entirely different things. 'namespacing' the options by what they affect would have been a good idea. Then again, at least that problem will go away when the wallet is separate.

  3. gmaxwell commented at 7:44 AM on May 2, 2014: contributor

    If we believe that a rescan should never be needed, and I think we do— then perhaps we should rename and hide the option. Since rescanning will not be available for a pruned node doing this will help prepare the software (and the users) for a future time when being able to willy-nilly rescan when its not needed is no longer a cheap option.

  4. laanwj commented at 7:58 AM on May 2, 2014: member

    OTOH Even SPV wallets commonly expose a re-scan option in case the wallet gets the transactions wrong. It needs to re-fetch all the filtered blocks starting from the birthdate of the wallet, so it's not cheap. In Android Wallet it is called 'Reset blockchain'. Well, thinking about it, it's more like a -zapwallettx than a -rescan.

  5. Diapolo commented at 8:07 AM on May 2, 2014: none

    Why not prepend the scope of the commands. E.g. -wallet-rescan or -blockdb-reindex?

  6. laanwj commented at 3:41 PM on February 9, 2016: member

    I agree with the sentiment, but deliberately renaming an option to prevent it from being overused (and break backwards compatibility) seems a step too far for me. In practice I can only see this generate complaints, especially as we don't fail on unknown options (#1044), so I'm going to close this.

  7. laanwj closed this on Feb 9, 2016

  8. TheComputerGenie commented at 1:13 PM on July 15, 2018: none

    Why not prepend the scope of the commands. E.g. -wallet-rescan or -blockdb-reindex?

    ...deliberately renaming an option to prevent it from being overused (and break backwards compatibility) seems a step too far for me.

    Given the new info changes, I guess no one cares about that idea anymore.

  9. KolbyML referenced this in commit ba9c3eec06 on Dec 5, 2020
  10. KolbyML referenced this in commit 638c146a8f on Dec 5, 2020
  11. 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-18 21:16 UTC

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