Author

Topic: You can't import a key pair that's been used before? What? (Read 659 times)

member
Activity: 70
Merit: 10
It's just a rescan, you can import it.

I am not sure what "just a rescan" means in this context but yes I can confirm I can import an address with a balance.  Thanks.
sr. member
Activity: 308
Merit: 250
Vod is a liar
It's just a rescan, you can import it.
Zae
member
Activity: 70
Merit: 10
Quote
You can't import a key pair that's been used before? What?
That's not what it says.

What it means is that bitcoind will rescan the blockchain to check the total balance.
member
Activity: 70
Merit: 10
It shouldn't be right. Perhaps what they mean is, Bitcoind/Bitcoin-qt will rescan the blockchain so it can retrieve any spendable outputs and display your balance.

Hope so.  I'm testing now.  It sure takes a lot longer than a minute or two if you don't have a very fast computer.  And if you stop it in the middle of the scan you can corrupt your blockchain and/or wallet.   Shocked
legendary
Activity: 1862
Merit: 1011
Reverse engineer from time to time
It shouldn't be right. Perhaps what they mean is, Bitcoind/Bitcoin-qt will rescan the blockchain so it can retrieve any spendable outputs and display your balance.
member
Activity: 70
Merit: 10
What good is being able to import a key if you can't import one that's been used before?  Is this a typo?  Is this a joke?  What good is backing up my key pairs for a rainy day if I won't be allowed to import them if they've been used before?  This can't be right, is it?


Quote
(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!

If no errors occurs, the import is a success and Bitcoin-QT users will be able to see the new address in the GUI immediately. If you need to import more keys, just repeat the instructions above. There is currently no command to import a batch of private keys so you will need to wait a minute or two for each key to be imported.
https://en.bitcoin.it/wiki/How_to_import_private_keys
Jump to: