Author

Topic: How does wallet.dat update? (Read 1544 times)

legendary
Activity: 1050
Merit: 1000
You are WRONG!
May 04, 2011, 11:58:56 AM
#8
will i have 20 btc in my wallet or 400?
and why?
it depends...

the wallet is contaning the private keys. each private key is a 'account number' so if you backup your wallet.dat, and only are recving money accounts in the wallet, your wallet grows bigger. but if your keep changing account numbers, the private key will not be in your backuped wallet.dat and your money will not be there.
full member
Activity: 136
Merit: 100
May 04, 2011, 11:21:22 AM
#7
lets say i have 20 btc in my wallet.dat today. and i decide to back it up today and put it in a usb drive.
then three years from now, i have been racking up btc in my wallet.dat on my computer.
I now have 400 btc.
lets say i get a new computer and install the wallet.dat FROM the usb. the wallet.dat file is three years old.
will i have 20 btc in my wallet or 400?
and why?

The bitcoin client has the bad habbit of generating a new address every time you receive a payment. If you actually make sure you receive the payments to the same address all the time, and disable the generation of new addresses, then restoring your old wallet file should have the same 400 BTC. But you should make sure you store your bitcoins on the address that is in the original backed-up wallet.
administrator
Activity: 5222
Merit: 13032
May 04, 2011, 12:49:37 AM
#6
Ahh I see, so if i used the same 100 addresses three years ago then I would have all my btc up to date right?

Not if you sent many transactions.
full member
Activity: 350
Merit: 100
May 04, 2011, 12:35:50 AM
#5
Ahh I see, so if i used the same 100 addresses three years ago then I would have all my btc up to date right?
sr. member
Activity: 406
Merit: 256
May 04, 2011, 12:32:17 AM
#4
Depends on what addresses you used. What theymos is pointing out is that you'll likely have spent those initial 20 coins, and any new coins would most likely have gone to newly generated addresses. Thus all of your 400 btc would probably be in new addresses not stored in the old wallet, and thus when you restore it you wouldn't have any bitcoins.

theymos wasn't implying that you'd be hacked, but that that page is a good overview of how to backup your wallet.

So, probably 0, unless you have been using old addresses.
full member
Activity: 350
Merit: 100
May 04, 2011, 12:15:06 AM
#3
this is hypothetical, saying i didnt get hacked.
would it restore my balance to 20 or 400?
administrator
Activity: 5222
Merit: 13032
May 03, 2011, 11:32:17 PM
#2
You'll probably have 0 if you've used your wallet much. Read:
https://en.bitcoin.it/wiki/Securing_your_wallet
full member
Activity: 350
Merit: 100
May 03, 2011, 11:27:53 PM
#1
lets say i have 20 btc in my wallet.dat today. and i decide to back it up today and put it in a usb drive.
then three years from now, i have been racking up btc in my wallet.dat on my computer.
I now have 400 btc.
lets say i get a new computer and install the wallet.dat FROM the usb. the wallet.dat file is three years old.
will i have 20 btc in my wallet or 400?
and why?
Jump to: