Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: vuce on June 06, 2011, 09:44:57 PM



Title: replacing wallet.dat shows no transactions
Post by: vuce on June 06, 2011, 09:44:57 PM
I've had this several times happen to me where I would restore an old wallet and there would be no transactions until I re-download the whole block chain from scratch (tried replacing it with recent blockchain nightly from http://bitcoin.bluematt.me/bitcoin-nightly/blockchain-nightly/ but it didn't work either). Why is this happening?

(hoping re-downloading will solve this issue since there is quite a sum on this current wallet I'm trying to restore...)


Title: Re: replacing wallet.dat shows no transactions
Post by: Maged on June 06, 2011, 10:30:34 PM
I've had this several times happen to me where I would restore an old wallet and there would be no transactions until I re-download the whole block chain from scratch (tried replacing it with recent blockchain nightly from http://bitcoin.bluematt.me/bitcoin-nightly/blockchain-nightly/ but it didn't work either). Why is this happening?

(hoping re-downloading will solve this issue since there is quite a sum on this current wallet I'm trying to restore...)
First off, any wallet created and used with a client after version 0.3.21 won't have this issue. Otherwise, if you are using a client 0.3.20 or higher, just start it with the -rescan command line.


Title: Re: replacing wallet.dat shows no transactions
Post by: vuce on June 06, 2011, 10:33:42 PM
I've had this several times happen to me where I would restore an old wallet and there would be no transactions until I re-download the whole block chain from scratch (tried replacing it with recent blockchain nightly from http://bitcoin.bluematt.me/bitcoin-nightly/blockchain-nightly/ but it didn't work either). Why is this happening?

(hoping re-downloading will solve this issue since there is quite a sum on this current wallet I'm trying to restore...)
First off, any wallet created and used with a client after version 0.3.21 won't have this issue. Otherwise, if you are using a client 0.3.20 or higher, just start it with the -rescan command line.
this is a wallet created with 0.3.21. I tried -rescan and it didn't help either. This is the third time it happened to me so I'm pretty sure this is some kind of a bug. It doesn't happen with all wallets though, some work perfectly fine. Wallet has been backed up before all those transactions were made to it, might be relevant?

edit: downloaded the blockchain nightly from 1 day before the first transaction to that wallet was made and let the client download the rest and now it's all there. So the question is: what does happen during blockchain download that doesn't with wallet rescan?

edit2: restored from backup again from block 126000 and now only transactions after that one show up.


Title: Re: replacing wallet.dat shows no transactions
Post by: BitConvict on June 07, 2011, 03:43:43 AM
You have to delete the "blkindex.dat" file whenever you change the wallet.dat so it can re-search for the block index.  ;)


Title: Re: replacing wallet.dat shows no transactions
Post by: vuce on June 07, 2011, 05:47:26 AM
You have to delete the "blkindex.dat" file whenever you change the wallet.dat so it can re-search for the block index.  ;)
yes I have, blkindex.dat and blk0001.dat (otherwise I wouldn't get the old blockchain, would I?).


Title: Re: replacing wallet.dat shows no transactions
Post by: vuce on June 07, 2011, 07:39:51 AM
And another bug http://i55.tinypic.com/n6dft2.png (http://i55.tinypic.com/n6dft2.png) (check the balance  ::))