Can a resynchronization be avoided when recovering a wallet in Bitcoin Core?

1

I have tried to restore my wallet by replacing wallet.dat with my file, but the issue is that Bitcoin Core started synchronizing from 8 years again. Can some one help me to avoid this because I frequently format my system. So, is there any way to avoid needing to repeat the synchronization?

I have tried -rescan too but it did not work. :( It shows my transaction history but does not show my balance for which I assume the sync needs to finish.

Rocky

Posted 2017-01-20T16:57:57.560

Reputation: 23

Answers

1

The only way to avoid a full resync is to make sure your backup contains the blockchain as it was when you made the backup; not just your wallet.

Then the core should only need to update with any more recent transactions.

Here is a good article on the subject: http://bitzuma.com/posts/moving-the-bitcoin-core-data-directory/

And here it is from the Wiki: https://en.bitcoin.it/wiki/Data_directory

SDsolar

Posted 2017-01-20T16:57:57.560

Reputation: 162

by the way which folder i need to backup is it blocks or chainstate?Rocky 2017-01-21T12:52:58.043

It depends on your version of Windows; here is a good article on the subject: http://bitzuma.com/posts/moving-the-bitcoin-core-data-directory/

SDsolar 2017-01-21T18:09:23.200

Here: https://en.bitcoin.it/wiki/Data_directory

SDsolar 2017-01-21T18:11:14.933

You need both the blocks and the chainstate. They do not need to be perfectly synchronized however - the blocks data may be newer than the chainstatePieter Wuille 2017-01-22T16:31:35.617