Post
Topic
Board Bitcoin Technical Support
Re: Importing an old v0.3.0 wallet.dat - is my plan sound?
by
ChapInRed
on 15/05/2023, 12:25:21 UTC
Copied old 2010 %appdata%\bitcoin folder (wallet.dat and all others) to a new subfolder at same level as TestWallet on Ubuntu. Added the new wallet which I presume was then validated against the downloaded blockhain, took a while.
The steps are quite outdated, precisely, the commonly used steps when Bitcoin Core only supported single wallet.dat file.
Now, all you have to do is to restore or load the wallet.dat file without creating a wallet to be replaced.

You can restore it using the command: restorewallet "wallet_name" "path_to_old_wallet.dat"
Or load it using: loadwallet "path_to_old_wallet.dat"
The former will create a new wallet file and directory with the hd/keys based from the old wallet.dat file.
The latter will directly load the old wallet file; both are available in the GUI's "File" menu.

Quote from: ChapInRed
This is good news, right? I've ordered a Ledger Nano.
Yes, as long as rescan is done after the wallet.dat file is replaced, that's good news.
Otherwise, its just your old wallet.dat file's past scanned balances.

Another rescan will make sure that it has been validated with your blockchain.

OK, in the Bitcoin Core console I rescanned my wallet imported as described above (call it 2010-first) - no change.

Then I used the 'recover wallet' option in the GUI on another backup copy of the original wallet.dat, which led to another wallet being created in Bitcoin Core which I called 2010-second. Rescanned this in the console, result was again no different.