Post
Topic
Board Bitcoin Technical Support
Merits 9 from 3 users
Re: 2013 wallet.dat fails to load on version 29
by
achow101
on 23/09/2025, 23:42:27 UTC
⭐ Merited by LoyceV (6) ,ABCbits (2) ,PowerGlove (1)
saved the wallet.dat file
Please clarify what you actually did, as there is no "save" action.

This is extremely unlikely to be a backwards compatibility issue. Looking at the log snippet you provided, it is highly likely that the error is a result of only copying the wallet.dat file. Contrary to popular belief, the wallet.dat file is not the only file you have to copy when copying a wallet from one node to another. You also have to copy that database folder.

This is especially true for older versions of Bitcoin Core as shutdown did not always compact everything into the wallet.dat file. Furthermore, copying the wallet.dat without unloading the wallet (or stopping Bitcoin Core) will result in data loss, and therefore detected corruption, because the log files in the database directory contains data before it gets committed into the wallet.dat file.

This behavior is also one of the reasons that we wanted to move off of BDB. SQLite can be configured to specifically not do that and to always write into the wallet.dat file.