Bitcoin Forum
May 07, 2024, 04:23:22 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 700 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?
1715055802
Hero Member
*
Offline Offline

Posts: 1715055802

View Profile Personal Message (Offline)

Ignore
1715055802
Reply with quote  #2

1715055802
Report to moderator
"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715055802
Hero Member
*
Offline Offline

Posts: 1715055802

View Profile Personal Message (Offline)

Ignore
1715055802
Reply with quote  #2

1715055802
Report to moderator
1715055802
Hero Member
*
Offline Offline

Posts: 1715055802

View Profile Personal Message (Offline)

Ignore
1715055802
Reply with quote  #2

1715055802
Report to moderator
1715055802
Hero Member
*
Offline Offline

Posts: 1715055802

View Profile Personal Message (Offline)

Ignore
1715055802
Reply with quote  #2

1715055802
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6587


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: 3388
Merit: 6587


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!