This is #27593 cleaned up / rebased, now that the legacy wallet has been dropped.
Closes #27593.
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--006a51241073e994b41acfe9ec718e94-->
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33064.
<!--021abf342d371248e50ceaed478a90ca-->
See the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
<!--5faf32d7da4f0f540f40219e4f7537a3-->
Tested on MacOS 15.5 (Debug build).
Question: would it make sense to also test "abortrescan" during an active rescan to hit the True path and ensure the scan halts as expected?
ACK 8aed477
lgtm ACK 8aed477c3322212a636ab69d4923f89e2d9a63a2
Question: would it make sense to also test "abortrescan" during an active rescan to hit the True path and ensure the scan halts as expected?
Feel free to open a new PR, adding additional test changes.