Bitcoin Forum
May 02, 2024, 02:01:16 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Help - importing private key - broke it  (Read 886 times)
xibeijan (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1001


View Profile
February 09, 2014, 10: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?

Notable projects 2019: Semux, Dero, Wagerr, BEAM
1714615276
Hero Member
*
Offline Offline

Posts: 1714615276

View Profile Personal Message (Offline)

Ignore
1714615276
Reply with quote  #2

1714615276
Report to moderator
1714615276
Hero Member
*
Offline Offline

Posts: 1714615276

View Profile Personal Message (Offline)

Ignore
1714615276
Reply with quote  #2

1714615276
Report to moderator
In order to get the maximum amount of activity points possible, you just need to post once per day on average. Skipping days is OK as long as you maintain the average.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714615276
Hero Member
*
Offline Offline

Posts: 1714615276

View Profile Personal Message (Offline)

Ignore
1714615276
Reply with quote  #2

1714615276
Report to moderator
minzie
Member
**
Offline Offline

Activity: 110
Merit: 10



View Profile WWW
February 09, 2014, 02:04:02 PM
 #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.

Professional Freelance Web Apps Engineer ° Portfolio °  ModoBot Automated Trading Platform ° BitThingy ° My Github  ° Skype: cclites_1
xibeijan (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1001


View Profile
February 09, 2014, 08: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.

Notable projects 2019: Semux, Dero, Wagerr, BEAM
xibeijan (OP)
Legendary
*
Offline Offline

Activity: 1232
Merit: 1001


View Profile
February 09, 2014, 11: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.

Notable projects 2019: Semux, Dero, Wagerr, BEAM
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!