Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: Viscera on January 05, 2016, 01:56:34 AM



Title: Importing an encrypted wallet.dat
Post by: Viscera on January 05, 2016, 01:56:34 AM
Are there any special requirements when importing an encrypted wallet.dat file. 

Also

If I've already downloaded the blockchain with a new wallet that has a zero ballance is there a way to update the wallet.dat that will allow it to work with the blockchain that's already downloaded or will I need to download the entire blockchain again.

Thanks


Title: Re: Importing an encrypted wallet.dat
Post by: achow101 on January 05, 2016, 02:03:50 AM
Are there any special requirements when importing an encrypted wallet.dat file. 

Also

If I've already downloaded the blockchain with a new wallet that has a zero ballance is there a way to update the wallet.dat that will allow it to work with the blockchain that's already downloaded or will I need to download the entire blockchain again.

Thanks
It will work automatically. All you need to do is replace the wallet.dat in the data directory with yours. If it doesn't show the correct balance then you will need to have Bitcoin Core rescan the blockchain, but this does not involve resyncing or redownloading anything. It is usually fairly quick. Normally you won't need to do that.


Title: Re: Importing an encrypted wallet.dat
Post by: unholycactus on January 05, 2016, 05:18:58 AM
Unless you are working with a very old version of Bitcoin core, everything should be fine if you close Core, swap wallet files, and relaunch.


Title: Re: Importing an encrypted wallet.dat
Post by: Viscera on January 05, 2016, 07:55:46 AM
Thanks, it's working


Title: Re: Importing an encrypted wallet.dat
Post by: vileygroun on January 12, 2016, 02:52:15 PM
Well, You need to replace the old wallet.dat with the newly created one. If you want the address from the other wallet.dat file, you need to import the private key from one to the other.