Is there an alternative to salvagewallet that keeps account info?

1

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 ?

drcelus

Posted 2014-01-07T10:02:43.867

Reputation: 225

have you tried to use pywallet to restore the file?Joe White 2014-01-07T21:09:21.807

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 2014-01-07T22:19:22.217

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) :)

Joe White 2014-01-07T22:33:31.080

Answers

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

djp

Posted 2014-01-07T10:02:43.867

Reputation: 121

Will surely take a look when it is released. Thanks for the heads up.drcelus 2014-02-13T09:22:11.443