Bitcoin Forum

Other => Beginners & Help => Topic started by: Gorilla22 on September 25, 2022, 11:16:46 PM



Title: Core with backed up wallet.dat. What first: sync or replacing wallet.dat?
Post by: Gorilla22 on September 25, 2022, 11:16:46 PM
I have Core on old PC and want to move it to new PC.
I am going just to set up new Core on new PC and replace wallet.dat with the old one.
But when to sync?
Does it matter when to sync the Core on new PC?
i.e.
First sync new Core, then replace its wallet.dat with the old one.
or
First replace its wallet.dat with the old one, then sync.
What goes first? Or it doesn't matter?



Do I understand things correct that it DOES MATTER?
First replace wallet.dat, then sync.
And this is the only option.
Is it so?


Title: Re: Core with backed up wallet.dat. What first: sync or replacing wallet.dat?
Post by: jackg on September 26, 2022, 12:58:05 AM
Yes it does matter (but only speed wise).

Replace the wallet first before syncing for the fastest amount of time to sync.


Title: Re: Core with backed up wallet.dat. What first: sync or replacing wallet.dat?
Post by: Gorilla22 on September 26, 2022, 01:07:26 AM
Thank you.
I forgot to mention that I mean pruned sync.
If I understand it correct, if you don't replace wallet.dat before pruned syncing, you will need to sync all over again after replacing wallet.dat.
Is that correct?



About pruned sync node:

"You have to resync your wallet with blockchain if you import a wallet.dat file that contains data synchronised outside the data stored in your prune node. This is very annoying, IMO"

From here:

https://bitcointalk.org/index.php?topic=5213552.0





Title: Re: Core with backed up wallet.dat. What first: sync or replacing wallet.dat?
Post by: NeuroticFish on September 26, 2022, 08:47:22 AM
I forgot to mention that I mean pruned sync.
If I understand it correct, if you don't replace wallet.dat before pruned syncing, you will need to sync all over again after replacing wallet.dat.
Is that correct?

Since afaik you have an old wallet, yes, that is correct. That's why is important to put the correct wallet.dat in place earliest possible.
Of course, Bitcoin Core must not be running at that point, you better restart computer or check the list of processes before copying wallet.dat.

Maybe this helps too:
https://en.bitcoin.it/wiki/Data_directory
https://bitcoin.stackexchange.com/questions/52612/how-do-i-retrieve-my-backed-up-wallet-to-bitcoin-core


Title: Re: Core with backed up wallet.dat. What first: sync or replacing wallet.dat?
Post by: odolvlobo on September 26, 2022, 08:04:07 PM
I forgot to mention that I mean pruned sync.

My understanding is that a pruned node reduces the amount of space required but it does not reduce the time it takes to sync.