Author

Topic: [solved] importing 2012 wallet.dat into core 27.1 gives error (Read 66 times)

legendary
Activity: 4354
Merit: 3614
what is this "brake pedal" you speak of?
and says to run the tool bitcoin-wallet.
Why not just try this? It's installed by default with Bitcoin Core.


As for the bitcoin-wallet tool, I noticed it's not include when you install QT on Windows.  It is included in the Windows Zip file, however.  You can download that from bitcoincore.org.  You'll find the bitcoin-wallet tool in the "bin" subdirectory.  Here's the help menu for the "bitcoin-wallet" tool.

ah, explains why i couldnt find bitcoin-wallet.exe and that was it, i used the windows .exe to install core and its updates. grabbed the .zip with bitcoin-wallet and copied it out.

thanks a bunch

im using copies of the wallets, never the originals to play with. and it will be an offline machine with a full unpruned blockchain. all on ssd so it should go decently while scanning.
legendary
Activity: 3472
Merit: 3217
Playbet.io - Crypto Casino and Sportsbook
You can try an older version of Bitcoin core because the format changes over time. It is possible that the "wallet.dat" you have is no longer supported or cannot be read by the most recent version of Bitcoin core.
The only problem of using outdated version it carries a risk so for me, always prioritize security by running it on an offline machine and make sure you have multiple copies of your wallet.dat file before importing it to older version of core.

If it still does not work, it is possible that your wallet files are corrupted. You can salvage them or dump the wallet with pywallet.
copper member
Activity: 2338
Merit: 4543
Join the world-leading crypto sportsbook NOW!
Is your node pruned?  If you're trying to import old wallets into a pruned node, you'll get errors.  I've never seen that particular error, however, but I don't have any wallets that old.

As for the bitcoin-wallet tool, I noticed it's not include when you install QT on Windows.  It is included in the Windows Zip file, however.  You can download that from bitcoincore.org.  You'll find the bitcoin-wallet tool in the "bin" subdirectory.  Here's the help menu for the "bitcoin-wallet" tool.

Code:
bitcoin-wallet -h
Bitcoin Core bitcoin-wallet version v28.0.0

bitcoin-wallet is an offline tool for creating and interacting with Bitcoin Core wallet files.
By default bitcoin-wallet will act on wallets in the default mainnet wallet directory in the datadir.
To change the target wallet, use the -datadir, -wallet and -regtest/-signet/-testnet/-testnet4 arguments.

Usage:
  bitcoin-wallet [options]

Options:

  -?
       Print this help message and exit

  -datadir=
       Specify data directory

  -descriptors
       Create descriptors wallet. Only for 'create'

  -dumpfile=
       When used with 'dump', writes out the records to this file. When used
       with 'createfromdump', loads the records into a new wallet.

  -format=
       The format of the wallet file to create. Either "bdb" or "sqlite". Only
       used with 'createfromdump'

  -legacy
       Create legacy wallet. Only for 'create'

  -version
       Print version and exit

  -wallet=
       Specify wallet name

Debugging/Testing options:

  -debug=
       Output debugging information (default: 0).

  -printtoconsole
       Send trace/debug info to console (default: 1 when no -debug is true, 0
       otherwise).

  -withinternalbdb
       Use the internal Berkeley DB parser when dumping a Berkeley DB wallet
       file (default: false)

Chain selection options:

  -chain=
       Use the chain (default: main). Allowed values: main, test,
       testnet4, signet, regtest

  -signet
       Use the signet chain. Equivalent to -chain=signet. Note that the network
       is defined by the -signetchallenge parameter

  -signetchallenge
       Blocks must satisfy the given script to be considered valid (only for
       signet networks; defaults to the global default signet test
       network challenge)

  -signetseednode
       Specify a seed node for the signet network, in the hostname[:port]
       format, e.g. sig.net:1234 (may be used multiple times to specify
       multiple seed nodes; defaults to the global default signet test
       network seed node(s))

  -testnet
       Use the testnet3 chain. Equivalent to -chain=test. Support for testnet3
       is deprecated and will be removed in an upcoming release.
       Consider moving to testnet4 now by using -testnet4.

  -testnet4
       Use the testnet4 chain. Equivalent to -chain=testnet4.

Commands:

  create
       Create new wallet file

  createfromdump
       Create new wallet file from dumped records

  dump
       Print out all of the wallet key-value records

  info
       Get wallet info

  salvage
       Attempt to recover private keys from a corrupt wallet. Warning:
       'salvage' is experimental.
legendary
Activity: 3290
Merit: 16489
Thick-Skinned Gang Leader and Golden Feather 2021
and says to run the tool bitcoin-wallet.
Why not just try this? It's installed by default with Bitcoin Core.
legendary
Activity: 4354
Merit: 3614
what is this "brake pedal" you speak of?
as title, i have pile of wallet backups.. most should be of the same wallet but i did create some test wallets to play with around that 2012 timeframe.

running core 27.1 and opening the 2012 wallet gives a "wallet verification failed" and says to run the tool bitcoin-wallet.

do i have to use old versions of core so the wallet recognized and is there a recommended upgrade path? like any particular versions i should run in sequence or anything to get the wallet up to 27.1 standard?

i suppose i should add yes they are my wallets and apologies if there is a thread(s) about this. if so please kindly point it out.

not expecting to find any coins but checking all those backups has been on my project list for a while.
Jump to: