Author

Topic: Help - importing private key - broke it (Read 900 times)

legendary
Activity: 1232
Merit: 1001
February 09, 2014, 06:23:54 PM
#4
I took a peek at the source code. The error maps back to an "Unspecified problem with the wallet", so yes, it looks like there may be a problem with your wallet. Have you checked the debug log?

Also, a 'Recover' function available in the source, but I am not having much luck in determining whether there is a means to invoke that from the command line.

Thanks.  I am going to try to backup and restore my wallet.  Worth a shot.

For anyone else running into this problem, backing up the wallet and restoring it fixed the issue for me.
legendary
Activity: 1232
Merit: 1001
February 09, 2014, 03:50:59 PM
#3
I took a peek at the source code. The error maps back to an "Unspecified problem with the wallet", so yes, it looks like there may be a problem with your wallet. Have you checked the debug log?

Also, a 'Recover' function available in the source, but I am not having much luck in determining whether there is a means to invoke that from the command line.

Thanks.  I am going to try to backup and restore my wallet.  Worth a shot.
member
Activity: 110
Merit: 10
February 09, 2014, 09:04:02 AM
#2
I took a peek at the source code. The error maps back to an "Unspecified problem with the wallet", so yes, it looks like there may be a problem with your wallet. Have you checked the debug log?

Also, a 'Recover' function available in the source, but I am not having much luck in determining whether there is a means to invoke that from the command line.
legendary
Activity: 1232
Merit: 1001
February 09, 2014, 05:07:11 AM
#1
Quote
Import Private key(s)

The last command unlocked your wallet temporarily for 120 seconds, during which time you must import your private keys. Since private keys can be as important as your passphrase, you may want to use the same techniques as above to prevent their being recorded in bash history (bash variable or space before the command):
(space)bitcoind importprivkey "5yourveryveryveryverylongprivatekeystring" "my-new-key"  # "my-new-key" is a label for the key/address pair and is optional
The importing process is now started. Bitcoind will rescan the entire block data to ensure this key has not been used before. This process will take from one to two minutes, depending on your CPU performance. DO NOT abort it before finishing!

I have stupidly aborted an importprivkey operation.  Sad

Now I cannot add the private key.  Returns error: {"code":-4,"message":"Error adding key to wallet"}

Is my wallet now damaged?  How can I fix this?
Jump to: