<p>This could be a solution once released:</p>

<p>"Add -zapwallettx function, a diagnostic tool to assist in wallet repair" - <a href="https://github.com/bitcoin/bitcoin/pull/3659" rel="nofollow">https://github.com/bitcoin/bitcoin/pull/3659</a></p>

CC BY-SA 3.0
2014-02-13T09:22:11.443Z
Will surely take a look when it is released. Thanks for the heads up.
drcelus
CC BY-SA 3.0
2014-02-13T06:01:09.627Z
2014-02-13T06:01:09.627Z
djp
<p>I am using the accounts feature of bitcoind , if a wallet gets corrupted and bitcoind is started with -salvagewallet then the account information is lost.</p>

<p>So, is there any built in feature that will rebuilt also my accounts ?</p>

CC BY-SA 3.0
2014-01-07T21:09:21.807Z
have you tried to use pywallet to restore the file?
Joe White
CC BY-SA 3.0
2014-01-07T22:19:22.217Z
Haven't tried but I have read this : https://en.bitcoin.it/wiki/Pywallet , and there is no mention about accounts support for this utility.
drcelus
CC BY-SA 3.0
2014-01-07T22:33:31.080Z
well there's a lot more to it than just that one liner. there's an entire thread on it (https://bitcointalk.org/index.php?topic=34028.0). you can do wallet surgery and remove offending errors and then set the rest back in place. if you are a skilled enough wallet surgeon you can leave everything in place. Honestly though: I'm not a huge fan of the accounting feature it causes too many headaches when we should be using other means rather than accounting  (personal opinion though nothing more) :)
Joe White
<bitcoind><bitcoin-core-accounts>
Is there an alternative to salvagewallet that keeps account info?
drcelus
# Is there an alternative to salvagewallet that keeps account info?

(Asked by: username_0 on 2014-01-07)

I am using the accounts feature of bitcoind , if a wallet gets corrupted and bitcoind is started with -salvagewallet then the account information is lost.

So, is there any built in feature that will rebuilt also my accounts ?

**Tags:** bitcoind, bitcoin-core-accounts

> **Comments:**
> **username_1**: have you tried to use pywallet to restore the file?  
> **username_0**: Haven't tried but I have read this : https://en.bitcoin.it/wiki/Pywallet , and there is no mention about accounts support for this utility.  
> **username_1**: well there's a lot more to it than just that one liner. there's an entire thread on it (https://bitcointalk.org/index.php?topic=34028.0). you can do wallet surgery and remove offending errors and then set the rest back in place. if you are a skilled enough wallet surgeon you can leave everything in place. Honestly though: I'm not a huge fan of the accounting feature it causes too many headaches when we should be using other means rather than accounting  (personal opinion though nothing more) :)  

---

## 1 answers

### Answer by username_2 on 2014-02-13. Score: 1

This could be a solution once released:

"Add -zapwallettx function, a diagnostic tool to assist in wallet repair" - <https://github.com/bitcoin/bitcoin/pull/3659>

> **Comments:**
> **username_0**: Will surely take a look when it is released. Thanks for the heads up.  

---

