Is there an existing issue for this?
- I have searched the existing issues
Current behaviour
Running importdescriptors
with timestamp: now
rescans the last 2 hours worth of blocks.
The docs say that ‘“now” can be specified to bypass scanning’ but that doesn’t appear to be true:
0"timestamp": timestamp | "now", (integer / string, required) Time from which to start rescanning the blockchain for this descriptor, in UNIX epoch time
1 Use the string "now" to substitute the current synced blockchain time.
2 "now" can be specified to bypass scanning, for outputs which are known to never have been used, and
3 0 can be specified to scan the entire blockchain. Blocks up to 2 hours before the earliest timestamp
4 of all descriptors being imported will be scanned as well as the mempool.
I also tried using timestamps several days into the future, but still see about 2 hours worth of blocks being rescanned. I want to be able to import a description without triggering any block rescan.
Expected behaviour
I expect the behavior to match the docs.
Steps to reproduce
- Run importdescriptors with the timestamp set to “now”
- See in the log that the wallet rescanned some blocks
Relevant log output
No response
How did you obtain Bitcoin Core
Compiled from source
What version of Bitcoin Core are you using?
v28.0
Operating system and version
Some kind of Debian
Machine specifications
No response