Bitcoin Forum
May 10, 2024, 01:36:10 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Wallet Backup Question  (Read 617 times)
newbie007 (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
September 26, 2012, 10:02:03 PM
 #1

I hope this isn't a stupid question.

Scenario

Standard Bitcoin client with several receiving addresses in it. I made a backup of the wallet.dat file. I continue to use bitcoin and over time(say a week) I have received several coins. The transactions show different receiving addresses when I get these coins that don't show on the receiving addresses tab in the client. Do a small bet on satoshidice and win or lose you get something back to an address newly created to receive and that address is not in my receiving addresses list.

My question is with the above scenario where I lose my wallet.dat due to hd crash or whatever and I restore from my backup thats a week old. What happens to the auto-generated receiving addresses that were in use post backup? How does the restored wallet.dat know those are my coins? How would a backup wallet a week old be able to pull all that back together? Its my understanding that each address you can receive bitcoins on must have a matching private key entry in your wallet.dat so you can use those coins. So how could a backup even be useful if new coins coming in get new addresses?

1715348170
Hero Member
*
Offline Offline

Posts: 1715348170

View Profile Personal Message (Offline)

Ignore
1715348170
Reply with quote  #2

1715348170
Report to moderator
1715348170
Hero Member
*
Offline Offline

Posts: 1715348170

View Profile Personal Message (Offline)

Ignore
1715348170
Reply with quote  #2

1715348170
Report to moderator
Remember that Bitcoin is still beta software. Don't put all of your money into BTC!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715348170
Hero Member
*
Offline Offline

Posts: 1715348170

View Profile Personal Message (Offline)

Ignore
1715348170
Reply with quote  #2

1715348170
Report to moderator
DannyHamilton
Legendary
*
Offline Offline

Activity: 3388
Merit: 4653



View Profile
September 26, 2012, 10:30:38 PM
 #2

The standard client pre-generates a list of addresses (and their private keys) for future use (typically 100 of them).  When you generate a new address, the client actually just grabs one of the pre-generated addresses and then generates a new one for the list to keep a buffer of 100 addresses.  So, as long as you use less than 100 addresses between your backup and when you restore it, all the addresses you've used since the backup should already be in the wallet.

If you've used more than 100 new addresses since your last backup, then you could lose access to the most recently received coins.
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!