Bitcoin Forum
July 28, 2017, 12:54:36 PM *
News: BIP91 seems stable: there's probably only slightly increased risk of confirmations disappearing. You should still prepare for Aug 1.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: wallet.dat lost and recovered, but balance flew away!  (Read 777 times)
Shevek
Sr. Member
****
Offline Offline

Activity: 252



View Profile
July 21, 2011, 09:47:26 AM
 #1

I've search for this problem a bit, but I had bad luck  Sad despite of this, I'm sure it stands somewhere. So, sorry if I repeat the topic.

Yesterday I accidentally wipe off the file 'wallet.dat'. No problem: I took my backup and restored it. My backup was a bit old, so when I restarted bitcoin, the addresses stay but the balance, with all operations made after backup, blew up. The reason is, because bitcoin uses the same file, 'wallet.dat' to keep private keys, public keys and transactions.

The only solution I've found for restoring the balance was restart bitcoin in a new folder (conserving 'wallet.dat' and 'bitcoin.conf') and wait several hours for the block-data rebuild up.

So the question is: is there any more clever way to restore the balance!? The information about transactions is in the block chain, available to the program; I think the client program should have an option "rescan the blockchain" or similar for such occasions. And, even better, keep the transaction file away from priv. keys!

Proposals for improving bitcoin are like asses: everybody has one
1SheveKuPHpzpLqSvPSavik9wnC51voBa
1501246476
Hero Member
*
Offline Offline

Posts: 1501246476

View Profile Personal Message (Offline)

Ignore
1501246476
Reply with quote  #2

1501246476
Report to moderator
1501246476
Hero Member
*
Offline Offline

Posts: 1501246476

View Profile Personal Message (Offline)

Ignore
1501246476
Reply with quote  #2

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

Posts: 1501246476

View Profile Personal Message (Offline)

Ignore
1501246476
Reply with quote  #2

1501246476
Report to moderator
Meni Rosenfeld
Donator
Legendary
*
Offline Offline

Activity: 1988



View Profile WWW
July 21, 2011, 09:50:01 AM
 #2

Use the -rescan command line argument. (If you're using a shortcut in Windows it can be added to it).

And you do know that your backups need to be relatively recent, and that an old backup might not have any of your coins, right?

1EofoZNBhWQ3kxfKnvWkhtMns4AivZArhr   |   Who am I?   |   bitcoin-otc WoT
Bitcoil - Exchange bitcoins for ILS (thread)   |   Israel Bitcoin community homepage (thread)
Analysis of Bitcoin Pooled Mining Reward Systems (thread, summary)  |   PureMining - Infinite-term, deterministic mining bond
Shevek
Sr. Member
****
Offline Offline

Activity: 252



View Profile
July 21, 2011, 11:08:57 AM
 #3

Use the -rescan command line argument.

Thanks Meni! I oversaw this option!

And you do know that your backups need to be relatively recent, and that and old backup might not have any of your coins, right?

I know this even before wipe the file. I simply think that rescanning is done by default...

Proposals for improving bitcoin are like asses: everybody has one
1SheveKuPHpzpLqSvPSavik9wnC51voBa
Meni Rosenfeld
Donator
Legendary
*
Offline Offline

Activity: 1988



View Profile WWW
July 21, 2011, 11:19:09 AM
 #4

And you do know that your backups need to be relatively recent, and that and old backup might not have any of your coins, right?
I know this even before wipe the file.
Ok, I was just concerned because you said "My backup was a bit old".

I simply think that rescanning is done by default...
Rescanning takes time, so shouldn't be done unless necessary. I guess future clients will intelligently determine when it is necessary.

1EofoZNBhWQ3kxfKnvWkhtMns4AivZArhr   |   Who am I?   |   bitcoin-otc WoT
Bitcoil - Exchange bitcoins for ILS (thread)   |   Israel Bitcoin community homepage (thread)
Analysis of Bitcoin Pooled Mining Reward Systems (thread, summary)  |   PureMining - Infinite-term, deterministic mining bond
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!