Bitcoin Forum
May 21, 2024, 11:26:45 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Core with backed up wallet.dat. What first: sync or replacing wallet.dat?  (Read 105 times)
Gorilla22 (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 66


View Profile
September 25, 2022, 11:16:46 PM
Last edit: September 26, 2022, 04:45:40 AM by Mr. Big
Merited by hugeblack (4)
 #1

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?
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
September 26, 2022, 12:58:05 AM
Merited by hugeblack (4)
 #2

Yes it does matter (but only speed wise).

Replace the wallet first before syncing for the fastest amount of time to sync.
Gorilla22 (OP)
Jr. Member
*
Offline Offline

Activity: 42
Merit: 66


View Profile
September 26, 2022, 01:07:26 AM
Last edit: September 26, 2022, 04:45:58 AM by Mr. Big
 #3

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



NeuroticFish
Legendary
*
Offline Offline

Activity: 3682
Merit: 6406


Looking for campaign manager? Contact icopress!


View Profile
September 26, 2022, 08:47:22 AM
 #4

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

█████████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████
█████████████████████████
.
BC.GAME
▄▄░░░▄▀▀▄████████
▄▄▄
██████████████
█████░░▄▄▄▄████████
▄▄▄▄▄▄▄▄▄██▄██████▄▄▄▄████
▄███▄█▄▄██████████▄████▄████
███████████████████████████▀███
▀████▄██▄██▄░░░░▄████████████
▀▀▀█████▄▄▄███████████▀██
███████████████████▀██
███████████████████▄██
▄███████████████████▄██
█████████████████████▀██
██████████████████████▄
.
..CASINO....SPORTS....RACING..
█░░░░░░█░░░░░░█
▀███▀░░▀███▀░░▀███▀
▀░▀░░░░▀░▀░░░░▀░▀
░░░░░░░░░░░░
▀██████████
░░░░░███░░░░
░░█░░░███▄█░░░
░░██▌░░███░▀░░██▌
░█░██░░███░░░█░██
░█▀▀▀█▌░███░░█▀▀▀█▌
▄█▄░░░██▄███▄█▄░░▄██▄
▄███▄
░░░░▀██▄▀


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
odolvlobo
Legendary
*
Offline Offline

Activity: 4326
Merit: 3231



View Profile
September 26, 2022, 08:04:07 PM
 #5

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.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!