4
I am in a special situation where I need to import my private key credentials and basically restore a wallet to bitcoind. bitcoind is running and I do have an rpc user/pass and server=1 in the bitcoind.conf, but no matter what I do, when I try and import the key I get the following error. There is no password nor encryption on the wallet.
root@coined:/home# bitcoind importprivkey "5JxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxHjdCia9dt7" "root"
error: {"code":-4,"message":"Error adding key to wallet"}
Are there any useful messages in debug.log? Also, FYI, if you run this on the command line, your private key is probably now logged in your shell's history file (perhaps ~root/.bash_history). – Nate Eldredge – 2014-02-18T15:30:51.310
If you typed it up manually, you might have a typo in there or are missing a character? I once had a uppercase "S" instead of lowercase "s" in something and it took me forever to find it. – Murch – 2014-02-19T10:23:38.847
@Murch copy/paste – dooode – 2014-02-19T22:36:58.247