Main Menu

Wallet got corrupted

Started by dacer, December 21, 2013, 02:03:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dacer

Quote from: arubi on December 21, 2013, 03:10:36 PM
No the version is fine, I used it on test wallet.

Is your wallet encrypted?
Also, are protosharesd or protoshares-qt running?

It's not encrypted and neither protosharesd nor protoshares-qt is running.

arubi

No the version is fine, I used it on test wallet.

Is your wallet encrypted?
Also, are protosharesd or protoshares-qt running?

dacer



Thanks arubi, but I got error when I run this command

python pywallet/pywallet.py --wallet=a/wallet.1387632456.bak --datadir=/Users/dong/.protoshares --otherversion=56 --dumpwallet


I got this error:


ERROR:root:Couldn't open wallet.dat/main. Try quitting Bitcoin and running this again.


Maybe I used he wrong 'otherversion' value?

arubi

Clone pyWallet
https://github.com/jackjack-jj/pywallet

Run this from /pywallet :

python pywallet.py --wallet=wallet.dat --datadir=$HOME/.protoshares/ --otherversion=56 --dumpwallet >> wallet-recovery.txt
pyWallet does a better job at recovering wallets than the satoshi client.
Good luck !

dacer

#1
I really need help now, especially from 3I engineers.

For some reason, my original wallet (wallet1) only shows 2 addresses, but their balance doesn't add up. So I think maybe there are a third 'change address'. And yes, I verified by looking into the transaction information online (btsblock.com). So I decided to aggregate all balance into one of the 2 address shown.

What I did is to quit the client, move my wallet.dat file into another place (wallet1_backup), restart client, copy the new address (Addr1) in the new wallet (wallet2), then switch back to wallet1(by "cp wallet_backup wallet.dat"), transferred all my PTS (~1000) into the new address. Then I probably did something very stupid. I just "mv wallet2_backup wallet.dat" WHILE the client is still open. Then when I quit the client, I got "wallet.dat corrupt, salvage failed", and I got something like wallet.1387632779.bak.

After I restarted the client, I found I have a fresh new address Addr2 which is not the one I sent all my PTS to.

Is there a way I can restore wallet.1387632779.bak somehow? I eagerly wait for help from the community.