Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: ramalama on August 09, 2015, 08:19:54 PM



Title: Cant import old wallet.dat bitcoin Core
Post by: ramalama on August 09, 2015, 08:19:54 PM
Hello, i have an encrypted wallet.dat exported from an older Bitcoin Qt. I Fresh installed Bitcoin Core. Now when i replace my backup wallet.dat for the one in ~/Library/Application Support/Bitcoin Bitcoin Core crashes...

Any idea?

Thx

http://postimg.org/image/y4i6cwx07/ (http://postimg.org/image/y4i6cwx07/)


Title: Re: Cant import old wallet.dat bitcoin Core
Post by: jbrnt on August 09, 2015, 09:05:07 PM
I think the wallet could be corrupt. You can check that by deleting wallet.dat (backup first) and let Core creat a new wallet.dat. If Core starts without errors, then there is definitely something wrong with your wallet file. Are you positive that this wallet.dat is for Bitcoin, not a wallet.dat for an altcoin?


Title: Re: Cant import old wallet.dat bitcoin Core
Post by: shorena on August 09, 2015, 09:34:26 PM
You can also try to start bitcoin core with -salvagewallet to make it try to recover from a corupted file.

Another option would be to see what pywallet has to say about the file.


Title: Re: Cant import old wallet.dat bitcoin Core
Post by: ramalama on August 09, 2015, 10:19:06 PM
You can also try to start bitcoin core with -salvagewallet to make it try to recover from a corupted file.

Another option would be to see what pywallet has to say about the file.

Hey, how do i do the -salvagewallet thing?

and is pywallet for mac?

Thx


Title: Re: Cant import old wallet.dat bitcoin Core
Post by: shorena on August 10, 2015, 09:26:22 AM
You can also try to start bitcoin core with -salvagewallet to make it try to recover from a corupted file.

Another option would be to see what pywallet has to say about the file.

Hey, how do i do the -salvagewallet thing?

and is pywallet for mac?

Thx

You need to run bitcoin core via terminal and add the common to it. I have never done this on a Mac so I cant give you an exact step by step, but it should be very similar to linux. Open a terminal, enter bitcoin-cli -salvagewallet and hit return. You might get an error that bitcoin-cli can not be found, in this case you need to navigate to its directory.

Pywallet is written in python which is also available for MacOS. The commands (step 2-4) given here[1] have to be run via terminal as well.

[1] https://github.com/jackjack-jj/pywallet


Title: Re: Cant import old wallet.dat bitcoin Core
Post by: ramalama on August 13, 2015, 01:04:23 PM
Is there a way of downloading an older version of Bitcoin QT and try to place the wallet there? Thx


Title: Re: Cant import old wallet.dat bitcoin Core
Post by: shorena on August 13, 2015, 05:53:42 PM
Is there a way of downloading an older version of Bitcoin QT and try to place the wallet there? Thx

A few older versions are available here -> https://bitcoin.org/bin/


Title: Re: Cant import old wallet.dat bitcoin Core
Post by: ramalama on August 20, 2015, 06:22:30 AM
The default wallet.dat size its about 86.KB my backup wallet.dat is 24.KB itīs that ok? The Backup is encrypted i know the pass but Bitcoin Core wont start with my wallet.dat

any other idea?


Title: Re: Cant import old wallet.dat bitcoin Core
Post by: ScoobieDoobie on August 20, 2015, 08:17:54 AM
Always make a couple backup dudes!