Repository navigation
doc, wallet: Add wallet corruption recovery guidance to managing-wallets.md - #35944
Closed
pablomartin4btc wants to merge 1 commit into
Closed
pablomartin4btc wants to merge 1 commit into
pablomartin4btc wants to merge 1 commit into
Conversation
Adds section 1.7 "Recovering from a Corrupted Wallet" to doc/managing-wallets.md. The section documents that restoring from a known-good backup is the only supported recovery path for corrupted wallet databases, and that there is no safe in-place repair mechanism. Motivated by achow101's conclusion in bitcoin#35605: "we should make the only supported corruption recovery mechanism be to restore a backup and not do any of this stuff with maybe being able to recover."
Contributor
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35944. ReviewsSee the guideline and AI policy for information on the review process. |
This was referenced Aug 10, 2026
Open
Member
|
Cherry-picked into #35760 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds section 1.7 "Recovering from a Corrupted Wallet" to
doc/managing-wallets.md. Documents that restoring from a known-good backup is the only supported recovery path for corrupted wallet databases, and that there is no safe in-place repair mechanism.Motivated by achow101's conclusion in #35605:
Note: the error message at
walletdb.cpp:1050currently says "This can be fixed by removing transactions from wallet and rescanning." — that message is inconsistent with this guidance and should be updated as a follow-up (or in #35605 or #35760, both of which are touching the related code paths).