Bitcoin Forum
May 09, 2024, 09:09:02 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How does wallet.dat update?  (Read 1520 times)
clonedone (OP)
Full Member
***
Offline Offline

Activity: 350
Merit: 100


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?
1715288942
Hero Member
*
Offline Offline

Posts: 1715288942

View Profile Personal Message (Offline)

Ignore
1715288942
Reply with quote  #2

1715288942
Report to moderator
Every time a block is mined, a certain amount of BTC (called the subsidy) is created out of thin air and given to the miner. The subsidy halves every four years and will reach 0 in about 130 years.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715288942
Hero Member
*
Offline Offline

Posts: 1715288942

View Profile Personal Message (Offline)

Ignore
1715288942
Reply with quote  #2

1715288942
Report to moderator
1715288942
Hero Member
*
Offline Offline

Posts: 1715288942

View Profile Personal Message (Offline)

Ignore
1715288942
Reply with quote  #2

1715288942
Report to moderator
1715288942
Hero Member
*
Offline Offline

Posts: 1715288942

View Profile Personal Message (Offline)

Ignore
1715288942
Reply with quote  #2

1715288942
Report to moderator
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5194
Merit: 12982


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 (OP)
Full Member
***
Offline Offline

Activity: 350
Merit: 100


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: 406
Merit: 256


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 (OP)
Full Member
***
Offline Offline

Activity: 350
Merit: 100


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
*
Offline Offline

Activity: 5194
Merit: 12982


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: 136
Merit: 100


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
Merit: 1000

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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!