Hi,
I have been staking like crazy since january and just found out that that is a bad thing
![Cry](https://bitcointalk.org/Smileys/default/cry.gif)
Apparently I was the last one on this particular chain, when it stopped
I have upgraded my client to 4.1 and re-synced. The client says I'm up to date, but my balance is zero. If I use my address on dopecoin explorer I see a balance there, that looks about right with 4 stakes coming in in january.
How can I (force)update my balance?
Thanks in advance,
ScubaFuz
You backed up your wallet.dat, yes?
You made sure you have a copy of wallet.dat in the data directory 4.1 is using, yes?
If so, then make another backup copy and put it aside, just in case.
Launch the client, go to the console window under Help -> Debug
repairwallet
close the client and relaunch it.
What version were you using before upgrading to 4.1?
I have several backups. The oldest surviving one is from February, apparently after the chain got wild. That one gives an error and starts a rescan but ends with an zero balance and no transactions.
My other backup from early June does a rescan without error and shows my transactions, including the minted dope, which are the last transactions. The balance is still zero though. Bit odd that the last 4 transaction are dope comming in and the balance is zero.
I don't remember what version I was using before, but it may have been 4.0.0.5 from the dopecoin.com site.
The option repairwallet doesn't seem to exist. I typed help and got a long list of commands, but not that one.
Can I start with a blank wallet and recreate it with my private key? Or maybe create a new wallet and transfer the balance there? I assume I can get to my dope using the private key, even without the wallet?
Thanks for the help.
ScubaFuz
Unfortunately, it looks like the repairwallet option was removed in 4.1. You could sync up 4.0.0.5 again and run it from that client's console. It will absolutely straighten out your wallet and find your coins. Find a link to my bootstrap up a few posts if you need it.
If you want to do it tritonium's way and get your private keys:
If you've only ever used one address then go to console and type
dumpprivekey <address>
If you used a bunch of addresses then
Go to console and type dumpwallet walletkey.txt
This will create a txt file called walletkey.txt in the directory you launched the client from with all your private keys.
It's going to dump a file with 100 public addresses / keys you can view in notepad.
The one(s) you used that should have coins in them will have "label" next to the timestamp instead of "reserve=1".
Now, the question here is, since your wallet is a scrambled mess is this dump file going to be accurate in discerning addresses from reserves?
Now that you've got your key(s)
Exit the client and remove the old wallet.dat from the data directory. A new one will be created when you relaunch the client.
Go back to console and type importprivkey <key>.
Wallet will lock up for a up to a few minutes while it imports the key.
Any balances held in that private key will appear.
Problem with this method is if you have coins spread over several addresses this can get frustrating.