Bitcoin Forum
April 26, 2024, 01:24:16 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Can I delete old copies of wallet.dat?  (Read 698 times)
jlp (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 264


View Profile
May 15, 2017, 01:25:27 AM
 #1

I have Bitcoin Core and wallet.dat.

In the past, I've made backups of wallet.dat by copying them to another disk.  Now, when I open each of the wallet.dat with Bitcoin Core, I see a different balance.  This makes sense because there were transactions between each time I took a backup copy.

Am I correct to assume that I can delete the older copies?  (I read somewhere that I should never delete any wallet.)

Why would the different wallet.dat files show different balances?  Don't they have the same addresses and keys?
1714094656
Hero Member
*
Offline Offline

Posts: 1714094656

View Profile Personal Message (Offline)

Ignore
1714094656
Reply with quote  #2

1714094656
Report to moderator
1714094656
Hero Member
*
Offline Offline

Posts: 1714094656

View Profile Personal Message (Offline)

Ignore
1714094656
Reply with quote  #2

1714094656
Report to moderator
1714094656
Hero Member
*
Offline Offline

Posts: 1714094656

View Profile Personal Message (Offline)

Ignore
1714094656
Reply with quote  #2

1714094656
Report to moderator
According to NIST and ECRYPT II, the cryptographic algorithms used in Bitcoin are expected to be strong until at least 2030. (After that, it will not be too difficult to transition to different algorithms.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3374
Merit: 6535


Just writing some code


View Profile WWW
May 15, 2017, 02:04:32 AM
 #2

Am I correct to assume that I can delete the older copies?  (I read somewhere that I should never delete any wallet.)
As long as you still have backups that are more recent versions of the backup that you are deleting, yes, you can delete those. However you should still keep several recent versions of the backup in multiple places to be safe.

Why would the different wallet.dat files show different balances?  Don't they have the same addresses and keys?
No. After 100 addresses are used (including change addresses), a new set of 100 addresses will have been generated which are not part of the previous backup.

jlp (OP)
Sr. Member
****
Offline Offline

Activity: 266
Merit: 264


View Profile
May 15, 2017, 01:41:33 PM
 #3


Thanks for your reply.


Why would the different wallet.dat files show different balances?  Don't they have the same addresses and keys?
No. After 100 addresses are used (including change addresses), a new set of 100 addresses will have been generated which are not part of the previous backup.

I didn't make anywhere close to 100 transactions.  Just a handful.  Therefore, shouldn't the same addresses and keys (that had any transactions) exist in all copies of the wallet.dat?  If so, shouldn't Bitcoin Core be able to determine from those addresses and keys, the most up-to-date bitcoin balance (and the same balance) for all copies of wallet.dat?
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3374
Merit: 6535


Just writing some code


View Profile WWW
May 15, 2017, 02:47:38 PM
 #4

I didn't make anywhere close to 100 transactions.  Just a handful.  Therefore, shouldn't the same addresses and keys (that had any transactions) exist in all copies of the wallet.dat?  If so, shouldn't Bitcoin Core be able to determine from those addresses and keys, the most up-to-date bitcoin balance (and the same balance) for all copies of wallet.dat?
You may need to rescan since it may not rescan when you load an older wallet so it doesn't know about the transactions that were made after the backup was made.

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!