Bitcoin Forum
December 03, 2016, 06:54:38 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: How does wallet.dat update?  (Read 1298 times)
clonedone
Full Member
***
Offline Offline

Activity: 126



View Profile
May 04, 2011, 04:27:53 AM
 #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?

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1480748078
Hero Member
*
Offline Offline

Posts: 1480748078

View Profile Personal Message (Offline)

Ignore
1480748078
Reply with quote  #2

1480748078
Report to moderator
1480748078
Hero Member
*
Offline Offline

Posts: 1480748078

View Profile Personal Message (Offline)

Ignore
1480748078
Reply with quote  #2

1480748078
Report to moderator
1480748078
Hero Member
*
Offline Offline

Posts: 1480748078

View Profile Personal Message (Offline)

Ignore
1480748078
Reply with quote  #2

1480748078
Report to moderator
theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2492


View Profile
May 04, 2011, 04:32:17 AM
 #2

You'll probably have 0 if you've used your wallet much. Read:
https://en.bitcoin.it/wiki/Securing_your_wallet

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
clonedone
Full Member
***
Offline Offline

Activity: 126



View Profile
May 04, 2011, 05:15:06 AM
 #3

this is hypothetical, saying i didnt get hacked.
would it restore my balance to 20 or 400?

Garrett Burgwardt
Sr. Member
****
Offline Offline

Activity: 350



View Profile
May 04, 2011, 05: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.
clonedone
Full Member
***
Offline Offline

Activity: 126



View Profile
May 04, 2011, 05: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?

theymos
Administrator
Legendary
*
expert
Offline Offline

Activity: 2492


View Profile
May 04, 2011, 05: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.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
alkor
Full Member
***
Offline Offline

Activity: 137


View Profile
May 04, 2011, 04:21:22 PM
 #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.
kokjo
Legendary
*
Offline Offline

Activity: 1050

You are WRONG!


View Profile
May 04, 2011, 04:58:56 PM
 #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.

"The whole problem with the world is that fools and fanatics are always so certain of themselves and wiser people so full of doubts." -Bertrand Russell
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!