Posted this on the Bitcoin Stack Exchange after the Bitcoin PR review club. I think it should probably be added to the docs on the config file @jon https://bitcoin.stackexchange.com/questions/89818/which-parameters-in-the-bitcoin-core-config-file-need-to-be-set-correctly-prior
Good idea, but worth noting that some commands which require a rescan can be called more efficiently, so as to not require a full reindex of the chainstate. So you’ll get some ‘false positives’.
Eg when using ‘importprivkey’, you can set rescan to 0 and then use a the more precise ‘rescanblockchain’ to locate the txs relevant to that key. Requires knowledge of the specific blocks those txs are in though.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!