Author Topic: Wallet got corrupted  (Read 16526 times)

0 Members and 1 Guest are viewing this topic.

Offline dacer

  • Full Member
  • ***
  • Posts: 67
    • View Profile
Re: Wallet got correpted
« Reply #5 on: December 21, 2013, 03:21:27 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.

Offline arubi

  • Sr. Member
  • ****
  • Posts: 209
    • View Profile
Re: Wallet got correpted
« Reply #4 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?

Offline dacer

  • Full Member
  • ***
  • Posts: 67
    • View Profile
Re: Wallet got correpted
« Reply #3 on: December 21, 2013, 03:08:50 pm »


Thanks arubi, but I got error when I run this command
Code: [Select]
python pywallet/pywallet.py --wallet=a/wallet.1387632456.bak --datadir=/Users/dong/.protoshares --otherversion=56 --dumpwallet

I got this error:

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

Maybe I used he wrong 'otherversion' value?

Offline arubi

  • Sr. Member
  • ****
  • Posts: 209
    • View Profile
Re: Wallet got correpted
« Reply #2 on: December 21, 2013, 02:41:07 pm »
Clone pyWallet
https://github.com/jackjack-jj/pywallet

Run this from /pywallet :

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

Offline dacer

  • Full Member
  • ***
  • Posts: 67
    • View Profile
Wallet got corrupted
« Reply #1 on: December 21, 2013, 02:03:54 pm »
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.
« Last Edit: December 21, 2013, 03:15:45 pm by wngdng77 »