Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: bethel on December 20, 2010, 09:37:09 PM



Title: Restoring Wallet
Post by: bethel on December 20, 2010, 09:37:09 PM
OK. I have backed up and restored wallets before but now it is not working.
1) Sent some coins to a clean install of a bitcoin client running version 0.3.19.
2) Got one confirmation and closed client down.
3) Copied the wallet.dat file to secure location and deleted it.
4) To test a recovery I started the client up with no wallet so it could create new wallet
5) Waited for at least one connection
6) Closed client and copied backed up wallet over the new empty wallet to test restoring from backup
7) Status says 0/unconfirmed long after getting 8 connections.

Do I need to re-download the block chain?
I remember doing this kind of backup a few months ago with no problem under version 0.3.8.

Any info would be appreciated.




Title: Re: Restoring Wallet
Post by: davout on December 20, 2010, 10:00:47 PM
I'm pretty sure that once the block chain is up to date you'll see your transactions.


Title: Re: Restoring Wallet
Post by: Stephen Gornick on December 20, 2010, 10:39:57 PM
Can you see the transaction using BlockExplorer.com ?

[Edit: of course you can, otherwise #2 would never have occurred, sorry.]


Title: Re: Restoring Wallet
Post by: bober182 on December 20, 2010, 10:41:46 PM
I think you want more confirmations for that you need blocks to be generated after the last transaction let it sit overnight then post back your results.


Title: Re: Restoring Wallet
Post by: Stephen Gornick on December 21, 2010, 12:11:18 AM
In testing something else out, I am getting the same symptoms.  I filed Issue #22:
  https://github.com/gavinandresen/bitcoin-git/issues/issue/22



Title: Re: Restoring Wallet
Post by: bober182 on December 21, 2010, 01:14:16 AM
The payment maybe did not make it into a block before being backed up. When you restored your old copy Bitcoin assumes its already pushed out to the network and stops sending it out therfore your payment is never made?
This is a conclusion that I'm thinking of and it seems it causes bitcoins to be stuck in limbo.


Title: Re: Restoring Wallet
Post by: davout on December 21, 2010, 09:37:49 AM
Nothing is stuck in limbo, it's either spent, or not spent.


Title: Re: Restoring Wallet
Post by: bober182 on December 21, 2010, 09:41:29 AM
they are not spent but bitcoin claims they are thus it wont let you spend them again so they are in limbo


Title: Re: Restoring Wallet
Post by: jib on December 21, 2010, 09:58:18 AM
I haven't tested this myself, but Bitcoin should resend the transaction if it's not on the network and didn't make it into a block.


Title: Re: Restoring Wallet
Post by: mati on December 21, 2010, 10:02:23 AM
Delet everything from wallet.dat directory, copy you wallet back and start client.

OK. I have backed up and restored wallets before but now it is not working.
1) Sent some coins to a clean install of a bitcoin client running version 0.3.19.
2) Got one confirmation and closed client down.
3) Copied the wallet.dat file to secure location and deleted it.
4) To test a recovery I started the client up with no wallet so it could create new wallet
5) Waited for at least one connection
6) Closed client and copied backed up wallet over the new empty wallet to test restoring from backup
7) Status says 0/unconfirmed long after getting 8 connections.

Do I need to re-download the block chain?
I remember doing this kind of backup a few months ago with no problem under version 0.3.8.

Any info would be appreciated.





Title: Re: Restoring Wallet
Post by: davout on December 21, 2010, 10:08:41 AM
they are not spent but bitcoin claims they are thus it wont let you spend them again so they are in limbo
If bitcoin claims they are spent, then one must simply hold the key to the address they were spent to.
If the key is lost, yes they are in limbo, but spent limbo :)


Title: Re: Restoring Wallet
Post by: bethel on December 21, 2010, 06:42:23 PM
In testing something else out, I am getting the same symptoms.  I filed Issue #22:
  https://github.com/gavinandresen/bitcoin-git/issues/issue/22


Update:
I was able to download the block chain and the transaction showed up with over 400 confirmations.

Thinking about this problem, it would be nice if there was an option to recheck the blocks that have been downloaded after a wallet restore instead of using up so much network bandwidth.

Better yet, a fully automated wallet backup and encryption / password protection would be nice for the average user.

I got a little nervous when I thought my whole savings account may be lost.


Title: Re: Restoring Wallet
Post by: Binford 6100 on February 05, 2011, 06:53:54 PM
Thinking about this problem, it would be nice if there was an option to recheck the blocks that have been downloaded after a wallet restore instead of using up so much network bandwidth.

the feature to recheck the block chain and update wallet is added in version 0.3.20
exactly for the reason not to have to download the whole block chain again