Author

Topic: Import many private keys (Read 721 times)

newbie
Activity: 2
Merit: 0
March 16, 2014, 04:34:33 PM
#4
Thank you both, that helped
legendary
Activity: 3472
Merit: 4801
March 16, 2014, 07:55:12 AM
#3
Run it like this:
importprivkey "" false

That will import without rescanning. You'll probably have to restart with -reindex afterwards, so it finds the relevant transactions, but at least it'll only do it once.

If you run the first 99 imports with the "false" flag, then those 9 keys will import without scanning the blockchain for transactions.  The balance won't update to reflect any bitcoins that are accessible with those 99 keys, but the import will complete very quickly.

Then when you import the 100th key, leave the "false" flag off the import command.  After importing the key, the wallet should scan the entire blockchain just once and find all the transactions associated with all 100 imported keys. The balance will reflect all bitcoins from all imported keys.

If you find that the balance isn't correct after the imports, you can force the wallet to scan the blockchain with a -rescan command line option.
sr. member
Activity: 412
Merit: 287
March 15, 2014, 06:13:37 PM
#2
Run it like this:
importprivkey "" false

That will import without rescanning. You'll probably have to restart with -reindex afterwards, so it finds the relevant transactions, but at least it'll only do it once.
newbie
Activity: 2
Merit: 0
March 15, 2014, 05:54:33 PM
#1
I have to add 100 or more generated pairs :(private key, address),  one command "bitcoind importprivkey privkey address" executes about 25mins,  Is there in bitcoind a way to import many private keys at one time.
Jump to: