Post
Topic
Board Announcements (Altcoins)
Re: [ANN][DRK] DarkCoin | First Anonymous Coin | First X11 | First DGW | ASIC Resistant
by
thelonecrouton
on 25/05/2014, 15:06:08 UTC
Anybody know how to undo a wallet.dat file that I copied over.

If you're using Windows, you could try Properties > Previous Versions. I haven't tested it myself and I'd back up anyway before trying.

im using windows 8.1 and don't see previous versions in the properties tab for the wallet.dat file
ok I found it but it didn't reset the wallet back to the original address.
any other ideas?
Restore from backup. You have backups, right?
cmon if had a backup i'd have restored it already. so heres the problem I xxx coins in an old xcoin wallet that wouldn't sync anymore. so I tried to update the wallet to darkcoin only to find I had a new darkcoin wallet  confused by this I tried to send my coins from the old xcoin wallet that wasn't syncing to the new darkcoin wallet of course the new wallet wouldn't show the transaction because the old wouldn't sync to make the transaction. so I followed some advice to add the xcoin wallet.dat file to darkcoins without knowing the extent of the changes I copied over the darkcoin wallet.dat file. so now I have my old xcoin wallet in the darkcoin wallet all synced up ready to work minus the xxx coins id transferred to the darkcoin wallet. hind sight is 20/20 obviously a huge mistake but its gotta be reversible right? .....


Related question for anyone who knows better than me: all you should need is the wallet address and the corresponding private key to access the coins in that address. Import the private key into a wallet and bingo, you have your balance back, just no transaction history.

Is this correct?

Do a dumpprivkey, make a note of it, and if you lose your wallet for whatever reason you can still recover?
ok how do I do this dumpprivkey or is this just a preventative to what I've already messed up
Preventative, sorry. If you have overwritten your wallet.dat and can't recover it, and don't have the corresponding private key, I don't know how to help or advise.

I just tried dumprivkey on a test address with a few DRK in it and got this:
Code:
dumpprivkey Xnc8wTL5wUJsBG9N76mxHvLhk9tmZrCJ7T
Private key for address Xnc8wTL5wUJsBG9N76mxHvLhk9tmZrCJ7T is not known (code -4)

Can't see any command in the help to generate a key for this address? What does keypoolrefill do?

You want to unlock the wallet first with walletpassphrase "yourpass" timeinseconds
Aha! Thank you.

OK, was able to dump key for that address, and from a fresh wallet, import that key and send them to another existing address. Everything confirmed OK from original wallet, all good, happy crouton. Smiley

I now plan to, for all my wallets, transfer everything into a new address within that wallet (to hoover up change etc.) dump the key, print and laminate it or something.

Multiple copies in multiple locations, guarded of course by multiple assault crocodiles. Less worry about cheapo USB stick failure.