Many exceptions thrown for corruption are std::runtime_error
; we should catch those and log the message to help with debugging.
Split from #32489
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/32598.
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.
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.
ACK 62ad4d80883191073ea39f8b8d5ccef0748414a1
Should also change HasLegacyRecords() as it would log the same error twice with this change.
That^ log can be removed as I checked that the only other usage of HasLegacyRecords
is directly inside the MigrateLegacyToDescriptor
function that comes after the corresponding LoadWallet
call. So, there should not be any informative log missing after its removal.
Should also change HasLegacyRecords() as it would log the same error twice with this change.
Done