Skip to content

doc, wallet: Add wallet corruption recovery guidance to managing-wallets.md - #35944

Closed
pablomartin4btc wants to merge 1 commit into
bitcoin:masterfrom
pablomartin4btc:doc/wallet-corruption-recovery
Closed

pablomartin4btc wants to merge 1 commit into
bitcoin:masterfrom
pablomartin4btc:doc/wallet-corruption-recovery

Conversation

@pablomartin4btc

Copy link
Copy Markdown
Member

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:

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.

Note: the error message at walletdb.cpp:1050 currently 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).

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."
@DrahtBot DrahtBot added the Docs label Aug 10, 2026
@DrahtBot

DrahtBot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Code Coverage & Benchmarks

For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/35944.

Reviews

See the guideline and AI policy for information on the review process.
A summary of reviews will appear here.

@pablomartin4btc pablomartin4btc changed the title doc: Add wallet corruption recovery guidance to managing-wallets.md doc, wallet: Add wallet corruption recovery guidance to managing-wallets.md Aug 10, 2026
@achow101

Copy link
Copy Markdown
Member

Cherry-picked into #35760

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants