Bitcoin Forum
November 14, 2024, 02:05:29 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Why does wallet.dat change?  (Read 917 times)
cjg (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
June 24, 2011, 09:29:18 PM
 #1

I've noticed that wallet.dat changes even though I've not generated new addresses, carried out any transactions, etc.

Under what circumstances does wallet.dat change?
willphase
Hero Member
*****
Offline Offline

Activity: 767
Merit: 500


View Profile
June 24, 2011, 09:39:05 PM
 #2

it stores the header of the highest block you've downloaded, so it can quickly request and validate the next block.  Otherwise, as you mentioned, most wallet modifications happen when you perform transactions.

Will

Maged
Legendary
*
Offline Offline

Activity: 1204
Merit: 1015


View Profile
June 24, 2011, 09:44:55 PM
 #3

it stores the header of the highest block you've downloaded, so it can quickly request and validate the next block.  Otherwise, as you mentioned, most wallet modifications happen when you perform transactions.

Will
The reason we now store that in the wallet is so that you can swap wallets in and out and they'll know how far back they have to rescan. Before, you had to do a full rescan of the blockchain whenever you swapped your wallet back in and had a transaction to/from the wallet since you swapped it out.

cjg (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 0


View Profile
June 24, 2011, 09:49:47 PM
 #4

Well, that explains it.

It just made me concerned because I was backing up my wallet.dat, but then I could see it had changed since the backup.

wallet.dat seems like a counter-intuitive place to keep information on the latest blocks.

DDreez
Newbie
*
Offline Offline

Activity: 20
Merit: 0


View Profile
June 24, 2011, 11:37:00 PM
 #5

I think it would be much more user-friendly to actually CREATE, NAME and SAVE your
own wallets (prompt the first time you open the client). Imagine a family sharing the same computer and having to copy/move around a bunch of files all named wallet.dat. Unnecessarily tricky! I'm sure there are lots of plans on incoporating better wallet handling in future versions.
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!