Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Casper Hornstrup on May 18, 2011, 10:07:35 PM



Title: .
Post by: Casper Hornstrup on May 18, 2011, 10:07:35 PM
.


Title: Re: Balance not re-calculated after wallet swaps
Post by: Pieter Wuille on May 18, 2011, 10:47:49 PM
Which version are you using? 0.3.21 should support this situation automatically. Earlier versions may need a -rescan. If transactions were done using copies of the wallet, you need 0.3.21 whatsoever.


Title: Re: Balance not re-calculated after wallet swaps
Post by: m0Ray on May 20, 2011, 12:09:51 AM
If nothing helps, try this code to delete all transactions from wallet, then rescan:
http://m0ray.net/sites/default/files/bitcoin/bc_tx.tar.bz2


Title: Re: Balance not re-calculated after wallet swaps
Post by: Pieter Wuille on May 20, 2011, 01:24:24 PM
Did it work with 0.3.21?


Title: Re: Balance not re-calculated after wallet swaps
Post by: m0Ray on May 20, 2011, 06:36:21 PM
If nothing helps, try this code to delete all transactions from wallet, then rescan:
http://m0ray.net/sites/default/files/bitcoin/bc_tx.tar.bz2
Yearh right ;-) What is that code supposed to do?
List and optionally delete (one or all) transactions stored in wallet.dat. It is not too dangerous: during rescan the deleted transactions are recreated from block chain.

Did it work with 0.3.21?
Yes.